Processes variables and PHP blocks inside strings
A statement represents a string that can contain references to variables and pieces of PHP code. Based on a variable delimiter, the class parses the declared variables and offers an API to manually assign values to them or search them in the global scope.
The default variable syntax is "~variable~". That means that "~" and "~" are the prefix and suffix that identify a variable. A pair of "#" chars inside the delimiters represent a block of PHP code that should be evaluated.
Examples:
Located in /core/util/Statement.class.php (line 62)
PHP2Go | --Statement
Declared PHP blocks
Variables prefix
Is this an already parsed statement?
Statement result (after variables binding)
Whether unassigned variables should be displayed
Statement source
Variables suffix
Declared variables
Resolves all variables declared in a string based on the global scope
Class constructor
Appends a value in a variable
Assigns a value to a given variable
Tries to assign value to a variable from the global scope
The default search order is: ROEGPCS.
Tries to assign values to all declared variables based on the global scope
For each declared variable, bindFromRequest is called. Inside it, the variable is searched in the superglobals POST, GET, SESSION, COOKIE and ENV, besides of being searched in the Registry singleton and in the session objects. The search order (which repository must be read first, and so on) is defined by the $searchOrder argument.
Prints debug information about all declared variables
Processes the statement and displays it
Display the statement's source
Get all declared variables
Applies all variable values and returns the processed statement
Get the statement's source
Get the number of declared variables
Gets the current value of a variable
Check if all statement's variables are bound
Checks if a given variable has a value
Checks if a given variable is declared
Checks if the statement contains any variables or code blocks
Checks if the instance contains an already parsed statement
Loads the statement from a file
Enable/disable the display of unassigned variables
Restarts the object with a new statement
Set the variables pattern
Parses code blocks and variables from the statement's source
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()
Documentation generated on Sun, 07 Oct 2007 19:29:49 -0300 by phpDocumentor 1.3.2