Script Parser - Function Invocation

This class allows the script parser to invoke functions.

Class Methods

The following methods can be invoked on instances of this class.

__construct(mixed strFunctionName, array arrParameters)

Constructor

setFunctionName(string strFunctionName)

Sets the name of the function to execute when evaluated

getFunctionName()

Returns the current function name

setParameters(mixed arrParameters)

Sets function arguments

setParameter(mixed iIndex, mixed mixedParameter)

Sets a single argument at an index

getParameters()

Gets the current function arguments

getParameter(int iIndex)

Returns a single argument at an index

evaluate(mixed pLeftObjectOrStatic, mixed bStatic)

Calls the function

toString(bool bEvalVariables)

Converts the expression into a string representation

__toString()

Converts the expression into a string representation

checkValueObject(mixed strValueName, mixed strValue)

Checks to make sure a value is able to be used

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class