PEAR | --BifWidget
All widgets should extend this class. It offers representation render thu templates (skins suported) and access control.
[line 32]
[line 66]
similar to $RAWfields, Ex.
$this->attributes['WIDTH'] = "200" ;
$this->HTMLfields = array ('WIDTH');
the replacement in tpl:
{WIDTH} -> WIDTH="200"
else will be empty.
Note this is to avoid WIDTH="" which is not HTML complient
[line 44]
Ex. if $this->RAWfields=array('TEXT','DATA'); template file should have {TEXT} and {DATA} somewhere
and what's in $this->attributes['TEXT'] and $this->attributes['DATA'] will do the replace in template
[line 85]
BIF3 uses PEAR's Sigma templates, each widget has it's own template object to render it's representation
[line 96]
In case there is a problem,
$this->warning=&new BifWarning(array('TEXT'=>'Error 404')) should be used to center all errors in the BifWarning class (for bugreporting for example)
[line 77]
is used to get template file among others thing
If is not specified will be: get_class($this)
NOTE: class name will be in lowercase
BifWidget BifWidget( [mixed $attrs = array()])
void draw( )
Overridden in child classes as:
void &getWidget( mixed $name)
void hasAccess( [mixed $question = ''])
void innerDraw( )
void isCorrectLang( [mixed $lang = ''])
void parseStructures( )
void show( )
void _BifWidget( )