General helper class for generating views.
package | Default |
---|
disableHtmlLogging(): void
Usage: disableLogging()
author | Menno Dekker |
---|---|
filterScript(string $sHtml): string
todo | : filter inline javascript (onclick etc ..., but don't filter EM javascript) Maybe doing it directly in LEM->GetLastPrettyPrintExpression(); |
---|---|
author | Denis Chenu |
string
string
flatEllipsizeText(string $sString,boolean $bFlat = true,integer $iAbbreviated,string $sEllipsis = '...',integer $fPosition = 1): string
string
:the string
boolean
: flattenText or not : completely flat (not like flattenText from common_helper)
integer
: max string text (if true : always flat), 0 or false : don't abbreviated
string
if abbreviated : the char to put at end (or middle)
integer
if abbreviated position to split (in % : 0 to 1)
string
flatten( $sHtml): string
string
getFieldCode(array $aField,array $aOption = array()): string
Usage: getFieldCode($aField, $aOption)
array
the field information from createFieldMap
array
option for filtering
string
getFieldText(array $aField,array $aOption = array()): string
Usage: getFieldText($aField, $aOption)
array
the field information from createFieldMap
array
option (see default)
string
getIconLink(string $icoClasses,string $linkUrl,string $linkTxt,string $linkTarget = null,string $linkClass = 'imagelink',array $attribs = array()): string
Usage: getIconLink('test.png', 'controller/action/params', 'Your description', 'optionalClass', '_blank')
string
the classes of the icon to generate
string
Url we want to go to, uses CController->createUrl()
string
Text to show for the link
string
Optional target to use for the link
string
Optional class to add to the link
array
Optional array of attirbutes to set on the link
string
getImageLink(string $imgName,string $linkUrl,string $linkTxt,string $linkTarget = null,string $linkClass = 'imagelink',array $attribs = array()): string
Usage: getImageLink('test.png', 'controller/action/params', 'Your description', 'optionalClass', '_blank')
string
the name of the image to use, adminImageUrl will be added to it
string
Url we want to go to, uses CController->createUrl()
string
Text to show for the link
string
Optional target to use for the link
string
Optional class to add to the link
array
Optional array of attirbutes to set on the link
string
getLanguageData( $bOrderByNative = false, $sLanguageCode = 'en')
TODO: convert surveytranslator to a real helper
getViewTestTag(string $name): string
string
unique view name
string
purified( $sHtml): string
string
putSeparator( $sString, $separator): string
:the string
string
stripTagsEM( $sHtml): string
string