rapila
Public Member Functions | List of all members
AjaxTemplate Class Reference

Helper class for Ajax-Requests to FrontendManager. More...

Inheritance diagram for AjaxTemplate:
Template

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)
 
- Public Member Functions inherited from Template
 __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 Public Member Functions inherited from Template
static htmlEncode ($sString)
 
static listTemplates ($mDirName=DIRNAME_TEMPLATES, $bListSubdirs=false, $bFlag=null)
 
- Public Attributes inherited from Template
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 Public Attributes inherited from Template
static $SUFFIX = '.tmpl'
 template suffix
 
static $ANY_VALUE = -1
 

Detailed Description

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.

Member Function Documentation

AjaxTemplate::identifiersMatching (   $sName = null,
  $sValue = null,
  $aParameters = null,
  $bFindFirst = false,
  $iStartPosition = 0 
)

Adapted version of Template’s identifiersMatching.

Parameters
string$sNameThe virtual identifier’s name to look up
string|null|self::$ANY_VALUE$sValue The virtual identifier’s value to look up
$aParameters[ignored]
$bFindFirstwhether to return just the item [true] or a (one-item) array [false]
$iStartPosition[ignored]

The documentation for this class was generated from the following file: