viewHelper

General helper class for generating views.

Methods

getFieldText returns complete field information text.

getFieldText(array $aField, array $aOption = array()) : string
static

Usage: getFieldText($aField, $aOption)

Arguments

$aField

array

the field information from createFieldMap

$aOption

array

option (see default)

Response

string

getFieldCode returns complete field information code.

getFieldCode(array $aField, array $aOption = array()) : string
static

Usage: getFieldCode($aField, $aOption)

Arguments

$aField

array

the field information from createFieldMap

$aOption

array

option for filtering

Response

string

Return a string with the good separator before and after

putSeparator(mixed $sString, $separator) 
static

Arguments

$sString

mixed

:the string

$separator

Return a string fixed according to option

flatEllipsizeText(mixed $sString, mixed $bFlat = true, mixed $iAbbreviated, mixed $sEllipsis = '...', mixed $fPosition = 1) 
static

Arguments

$sString

mixed

:the string

$bFlat

mixed

: flattenText or not : completely flat (not like flattenText from common_helper)

$iAbbreviated

mixed

: max string text (if true : allways flat), 0 or false : don't abbreviated

$sEllipsis

mixed

if abbreviated : the char to put at end (or middle)

$fPosition

mixed

if abbreviated position to split (in % : 0 to 1)

disableLogging deactivate default logging in HTML if we don't produce HTML

disableHtmlLogging() : void
static

Usage: disableLogging()

author

Menno Dekker

Deactivate script but show it for debuging This only filter script tag

filterScript(string $sHtml) : string
static
todo

: filter inline javascript (onclick etc ..., but don't filter EM javascript) Maybe doing it directly in LEM->GetLastPrettyPrintExpression();

author

Denis Chenu

Arguments

$sHtml

string

Response

string

Show purified html

purified(string $sHtml) : string
static

Arguments

$sHtml

string

Response

string

Show clean string, leaving ONLY tag for Expression

stripTagsEM($sHtml) : string
static

Arguments

$sHtml

Response

string