| // +--------------------------------------------------------------------+ // // $Id$ // // +X2C includes require_once 'BIFE/Widget.php'; // ~X2C // +X2C Class 103 :AlbumPhoto /** * Photo widget. * * @access public */ class BIFE_AlbumPhoto extends BIFE_Widget { // ~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 { $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_Sigma &$template Template to use to render the widget. * * @return string * @access public */ function render(&$template) // ~X2C { $template->group = 'album'; return $template->parse('photo', $this->attrs); } // -X2C } // -X2C Class :AlbumPhoto ?>