|
eZ Publish
[4.2]
|
Replaces or generates blocks of code according to a template file. More...
Public Member Functions | |
| apply ($filePath, $checkOnly=false) | |
| eZCodeTemplate () | |
| templateFile ($templateName) | |
Static Public Member Functions | |
| allCodeFiles () | |
Public Attributes | |
| $Templates | |
| const | STATUS_FAILED = 0 |
| There are errors in the template code. | |
| const | STATUS_NO_CHANGE = 2 |
| Code file was updated, but no new elements has been added. | |
| const | STATUS_OK = 1 |
| Code files was succesfully updated. | |
Replaces or generates blocks of code according to a template file.
Definition at line 40 of file ezcodetemplate.php.
| eZCodeTemplate::allCodeFiles | ( | ) | [static] |
Finds all PHP files which must be updated and returns them as an array.
The files are defined in codetemplate.ini in the variable PHPFiles
Definition at line 386 of file ezcodetemplate.php.
| eZCodeTemplate::apply | ( | $ | filePath, |
| $ | checkOnly = false |
||
| ) |
Applies template block in the file $filePath and writes back the new code to the same file.
Definition at line 73 of file ezcodetemplate.php.
| eZCodeTemplate::eZCodeTemplate | ( | ) |
Constructor
Definition at line 54 of file ezcodetemplate.php.
| eZCodeTemplate::templateFile | ( | $ | templateName | ) |
false if no file is defined for the name. Definition at line 371 of file ezcodetemplate.php.
Referenced by apply().
| eZCodeTemplate::$Templates |
Definition at line 393 of file ezcodetemplate.php.
| const eZCodeTemplate::STATUS_FAILED = 0 |
There are errors in the template code.
Definition at line 43 of file ezcodetemplate.php.
Referenced by apply().
| const eZCodeTemplate::STATUS_NO_CHANGE = 2 |
Code file was updated, but no new elements has been added.
Definition at line 49 of file ezcodetemplate.php.
Referenced by apply().
| const eZCodeTemplate::STATUS_OK = 1 |
Code files was succesfully updated.
Definition at line 46 of file ezcodetemplate.php.
Referenced by apply().