Class: I2CE Page BinaryField
From IHRIS Wiki
This article describes the class I2CE_Page_BinaryField.
- Extends the class: I2CE_Page.
- Parent Classses: I2CE_Page I2CE_Fuzzy
- Location: Part of the module BinField in the package I2CE
- Source: Defined in the file modules/Forms/modules/Binary_Files/lib/I2CE_Page_BinaryField.php
- Author: Carl Leitner <litlfred@ibiblio.org>
- Since: v4.0.0
@filesource Class I2CE_Page_BinaryField
Methods
display()
Handles GET requests for a binary field The relevant get variables are:
- cat -- the I2CE_FileSearch category we should be looking for
- name -- the filename we are looking for
As an alternative (mainly b/c libxml's xmlSetProp (which is used by PHP's DOM) which will automatically escape &) you can set the variable encoded=ENC_BLAH where ENC_BLAH is an urlencoded string with the cat and name variables set e.g urlencode("cat=SCRIPTS&name=somescript.js")
- Signature: public function display()
initializeTemplate()
Handles creating hte I2CE_TemplateMeister templates and loading any default templates
- Signature: protected function initializeTemplate()
- Returns: boolean
true on success