| // +--------------------------------------------------------------------+ // // $Id$ // // +X2C includes require_once 'BIFE/Widget.php'; // ~X2C // +X2C Class 103 :AlbumPhoto /** * Photo widget. * * @access public */ class BIFE_AlbumPhoto extends BIFE_Widget { /** * Photo filename. * * @var string $file * @access protected */ var $file; /** * Photo Description. * * @var string $desc * @access protected */ var $desc; // ~X2C // +X2C Operation 106 /** * Constructor. * * @param array $attrs Attributes. * * @return void * @access public */ function BIFE_AlbumPhoto($attrs) // ~X2C { $this->__construct($attrs); } // -X2C // +X2C Operation 107 /** * Constructor. * * @param array $attrs Attributes. * * @return void * @access public */ function __construct($attrs) // ~X2C { $this->file = @$attrs['FILE'] ? $attrs['FILE'] : @$_REQUEST['BIFE_AlbumPhoto_FILE']; $this->desc = @$attrs['DESC'] ? $attrs['DESC'] : basename($this->file); } // -X2C // +X2C Operation 108 /** * Renders the widget using a template returning a string with the results. * * @param HTML_Template_Sigma &$template Template to use to render the widget. * * @return string * @access public */ function render(&$template) // ~X2C { $template->loadTemplateFile('bife_albumphoto.html'); $template->setVariable( array( 'FILE' => $this->file, 'DESC' => $this->desc, ) ); return $template->get(); } // -X2C } // -X2C Class :AlbumPhoto ?>