|
You are here: Home / Documentation / PHP Shorthand Reference |
PHP Shorthand ReferencePHP Shorthand is used in SimpleTemplate and XT templates in various tags to simplify the PHP syntax used. In XT this was originally intended to avoid PHP's XML-invalid characters, but it also has the benefit of increasing the readability of template tags by keeping them as alphanumeric as possible. Keyword SubstitutionsCase-insensitive keywords are replaced by their respective operators. These include:
Additional Transformations
Examplesfoo.bar ('foo.bar')
becomes: $GLOBALS['foo']->bar ('foo.bar')
not isset (someArray[keyname]) becomes: ! isset ($GLOBALS['someArray']['keyname'])
foo.bar ge bar.foo and not empty (foo.asdf) becomes: $GLOBALS['foo']->bar >= $GLOBALS['bar']->foo && ! empty ($GLOBALS['foo']->asdf) |
|
Copyright © 2008, SIMIAN systems Inc. All rights reserved. Privacy policy Some of the icons on this site were created by the Gnome Project. |