Class: I2CE Page BinaryField

From IHRIS Wiki
Revision as of 12:10, 19 October 2009 by Litlfred (talk | contribs)

This article describes the class I2CE_Page_BinaryField.

@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