void setTab(
string
$name, mixed
$caption, mixed
&$content, [string
$type = 'DIV'])
|
|
adds (or replaces) a new tab to this page control.
params: because the $caption can be different for different languages, we need something to uniquely identify each tab. that's why we need the $name.
the $type defines what tag the content should be. the possibilities are: 'DIV' (default). this is used if the content of the tab is a container. 'P' the content is a container too. but we use a paragraph tag instead of a div. domapi offers that feature. dunno what it's good for. 'IFRAME' can be used to have another page displayed in that tabs content.
the $content depends on $type. for 'DIV' and 'P' it is a container. for 'IFRAME' it is the url for the page to show. note that the param is taken by reference. so if you're going to pass an url you need to assign the url to a var first. the referency is absolutely needed for containers.
examples: setTab('tabA', 'A', $myContainer); setTab('tabB', array('en'=>'Bee', 'de'=>'Bii'), $url='http://www.blueshoes.org/', 'IFRAME');
Tags:
Parameters: