|
| __construct ($sTagName, $aParameters=array(), $sContent="") |
|
| setParameter ($sName, $sValue) |
|
| getParameter ($sName) |
|
| hasParameter ($sName) |
|
| addToParameter ($sName, $sValue) |
|
| parse ($bContentIsEscaped=false) |
|
| __toString () |
|
|
static | quickTag ($sTagName= 'div', $aParameters=array(), $sContent= '') |
|
static | getEmailLinkWriter ($sLinkUrl, $sText=null, $sQuery='') |
|
static | writeEmailLink ($sLinkUrl, $sText) |
|
static | optionsFromArray ($aKeyValues, $mSelected=null, $sIndentType='┼', $aCustomOptions=array(''=> '------'), $bStrict=false) |
|
static | optionsFromObjects ($aObjects, $sKeyMethod=null, $sValueMethod=null, $mSelected=null, $aCustomOptions=array( ''=> '------'), $bStrict=false) |
|
static | listItemsFromArray ($aArray) |
|
static | tableFromArray ($aParams, $sClassName='doc_types') |
|
static TagWriter::optionsFromArray |
( |
|
$aKeyValues, |
|
|
|
$mSelected = null , |
|
|
|
$sIndentType = '┼' , |
|
|
|
$aCustomOptions = array('' => '------') , |
|
|
|
$bStrict = false |
|
) |
| |
|
static |
Helper method to generate the HTML for a <select> element using the values from an array.
- Parameters
-
array | $aKeyValues | Assoc array (optionvalue => optiondisplayname) or hash (optionvalue => array('value'=> displayname, 'level'=>integer for indenting of nested items) |
string | array | $mSelected | The selected item |
string | $sIndentType | optional indent char for nested items, requires value as array including param 'level' |
array | null | $aCustomOptions | custom options to prepend to the array (for convenience) |
boolean | $bStrict | Whether to do strict comparisons when trying to find the selected item |
- Returns
- string of html options
The documentation for this class was generated from the following file:
- cms-full/base/lib/classes/TagWriter.php