X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/6b3b1dd0cad8c4342008f139922e1ed26924bf2a..715ddc41f45dcf4d64348fef69844618ad1abb3d:/src/BIFE/Page.php diff --git a/src/BIFE/Page.php b/src/BIFE/Page.php index f352f2c..0bff2f9 100644 --- a/src/BIFE/Page.php +++ b/src/BIFE/Page.php @@ -27,7 +27,7 @@ // // +X2C includes -require_once 'BIFE/Generic.php'; +require_once 'BIFE/Root.php'; // ~X2C // +X2C Class 14 :Page @@ -36,7 +36,7 @@ require_once 'BIFE/Generic.php'; * * @access public */ -class BIFE_Page extends BIFE_Generic { +class BIFE_Page extends BIFE_Root { // ~X2C // +X2C Operation 15 @@ -50,10 +50,64 @@ class BIFE_Page extends BIFE_Generic { */ function BIFE_Page($attrs) // ~X2C { - $this->BIFE_Generic($attrs); + $this->__construct($attrs); + } + // -X2C + + // +X2C Operation 53 + /** + * Constructor. + * + * @param array $attrs Attributes. + * + * @return void + * @access public + */ + function __construct($attrs) // ~X2C + { + parent::__construct($attrs); + } + // -X2C + + // +X2C Operation 93 + /** + * Adds contents to the container. + * + * @param mixed &$contents Contents to add. + * + * @return void + * @access public + */ + function addContents(&$contents) // ~X2C + { + if (is_string($contents)) { + $contents = trim($contents); + } + if ($contents) { + parent::addContents($contents); + } + } + // -X2C + + // +X2C Operation 90 + /** + * Returns the rendered widget as a string. + * + * @param HTML_Template_HIT &$template Template to use to render the widget. + * + * @return string + * @access public + */ + function render(&$template) // ~X2C + { + $this->attrs['CONTENTS'] = parent::render($template); + $template->setGroup(); + $out = $template->parse('bife_page', $this->attrs); + $template->unsetGroup(); + return $out; } // -X2C } // -X2C Class :Page -?> +?> \ No newline at end of file