| // +--------------------------------------------------------------------+ // // $Id$ // // +X2C includes require_once 'BIFE/Widget.php'; // ~X2C // +X2C Class 103 :Photo /** * Photo widget. * * @access public */ class BIFE_Album_Photo extends BIFE_Widget { // ~X2C // +X2C Operation 106 /** * Constructor. * * @param array $attrs Attributes. * * @return void * @access public */ function BIFE_Album_Photo($attrs) // ~X2C { $this->__construct($attrs); } // -X2C // +X2C Operation 107 /** * Constructor. * * @param array $attrs Attributes. * * @return void * @access public */ function __construct($attrs) // ~X2C { $new_attrs['FILE'] = @$attrs['FILE'] ? $attrs['FILE'] : @$_REQUEST['BIFE_ALBUM_FILE']; $new_attrs['DESC'] = @$attrs['DESC'] ? $attrs['DESC'] : basename($new_attrs['FILE']); parent::__construct($new_attrs); } // -X2C // +X2C Operation 108 /** * Renders the widget using a template returning a string with the results. * * @param HTML_Template_HIT &$template Template to use to render the widget. * * @return string * @access public */ function render(&$template) // ~X2C { $template->setGroup('album'); $out = $template->parse('photo', $this->attrs); $template->unsetGroup(); return $out; } // -X2C } // -X2C Class :Photo ?>