![]() |
rapila
|
Helper class for Ajax-Requests to FrontendManager. More...
Public Member Functions | |
__construct ($aRequested, $bDirectOutput=false) | |
render ($bIsForSubtemplate=false) | |
getSentOutput () | |
identifiersMatching ($sName=null, $sValue=null, $aParameters=null, $bFindFirst=false, $iStartPosition=0) | |
replaceIdentifier ($mIdentifier, $mOriginalText, $sValue=null, $iFlags=0, $mFunction=null) | |
replaceIdentifierMultiple ($mIdentifier, $mOriginalText=null, $sValue=null, $iFlags=0, $mFunction=null) | |
![]() | |
__construct ($sTemplateName, $mPath=null, $bTemplateIsTextOnly=false, $bDirectOutput=false, $sTargetEncoding=null, $sRootTemplateName=null, $iDefaultFlags=0) | |
derivativeTemplate ($sTemplateName, $mPath=false, $bTemplateIsTextOnly=false) | |
hasIdentifier ($sName, $sValue=TemplateIdentifier::PARAMETER_EMPTY_VALUE) | |
listValuesByIdentifier ($sType) | |
replaceAt ($iIndex, $mReplacement=null, $iLength=1) | |
identifiersMatching ($sName=null, $sValue=null, $aParameters=null, $bFindFirst=false, $iStartPosition=0) | |
findEndIfForIf ($oIf) | |
setDefaultFlags ($iDefaultFlags) | |
replaceIdentifier ($mIdentifier, $mText, $sValue=TemplateIdentifier::PARAMETER_EMPTY_VALUE, $iFlags=0, $mFunction=null) | |
replaceIdentifierMultiple ($mIdentifier, $mText=null, $sValue=TemplateIdentifier::PARAMETER_EMPTY_VALUE, $iFlags=0, $mFunction=null) | |
replaceIdentifierMultipleCallback ($sIdentifier, $mCallbackObject, $sCallbackMethod="getTextForReplaceIdentifier", $iFlags) | |
replaceIdentifierCallback ($sIdentifier, $mCallbackObject, $sCallbackMethod=null, $iFlags=0) | |
replacePstring ($sPstringName, $aParameters, $sStringKey=null) | |
render ($bIsForSubtemplate=false) | |
doIncludes () | |
getSentOutput () | |
__toString () | |
__clone () | |
__wakeup () | |
closeIdentifier ($sName, $sValue=null) | |
getTemplateName () | |
getTemplatePath () | |
getCharset () | |
Additional Inherited Members | |
![]() | |
static | htmlEncode ($sString) |
static | listTemplates ($mDirName=DIRNAME_TEMPLATES, $bListSubdirs=false, $bFlag=null) |
![]() | |
const | NO_HTML_ESCAPE = 1 |
const | ESCAPE = 2 |
const | JAVASCRIPT_CONVERT = 4 |
const | JAVASCRIPT_ESCAPE = 7 |
const | LEAVE_IDENTIFIERS = 8 |
const | FORCE_HTML_ESCAPE = 16 |
const | NO_NEWLINE = 32 |
const | NO_NEW_CONTEXT = 64 |
const | NO_IDENTIFIER_VALUE_REPLACEMENT = 128 |
const | NO_RECODE = 256 |
const | STRIP_TAGS = 512 |
const | CONVERT_NEWLINES_TO_BR = 1024 |
const | URL_ENCODE = 2048 |
$bKillIdentifiersBeforeRender = true | |
If set to false, identifiers will be inserted into the final output. | |
$iDefaultFlags = 0 | |
Default flags are ORed against given flags in all operations. Default flags are also inherited to included templates. | |
![]() | |
static | $SUFFIX = '.tmpl' |
template suffix | |
static | $ANY_VALUE = -1 |
Helper class for Ajax-Requests to FrontendManager.
AjaxTemplate is used by FrontendManager to simulate a real template when, in fact, only a few template identifiers need to be filled and they need to be returned in a nice JSON object.
AjaxTemplate::identifiersMatching | ( | $sName = null , |
|
$sValue = null , |
|||
$aParameters = null , |
|||
$bFindFirst = false , |
|||
$iStartPosition = 0 |
|||
) |
Adapted version of Template’s identifiersMatching.
string | $sName | The virtual identifier’s name to look up |
string|null|self::$ANY_VALUE | $sValue The virtual identifier’s value to look up | |
$aParameters | [ignored] | |
$bFindFirst | whether to return just the item [true] or a (one-item) array [false] | |
$iStartPosition | [ignored] |