Template operators of eZ Publish are really powerful!
But sometimes you want to create some simples template operators, which don't need power.
In this case, you can use OWSimpleOperator. You will save time and you will have more readable and maintainable operators.
This extension was made by Open Wide
For installation instructions please read the doc/INSTALL.md
The OWSimpleOperator provides also a lot of utility methods for your PHP code :
-
Call any PHP Function as a template operator
-
String manipulation
-
eZ Object Attribute Manipulation
-
Object type Control
-
Output manipulation
If an operator argument is optional, you have to set the default value to null.
If you want more than 10 arguments for your operator, you have to override the $max_operator_parameter attribute.
If you want to use a PHP Function as a template operator it must be enabled within owsimpleoperator.ini.append.php:[PHPFunctions] PermittedFunctionList[]
If you want to use a PHP Class Method as a template operator it must be enabled within owsimpleoperator.ini.append.php:[ClassOperators] PermittedClassOperatorList[]
OW Simple Operator is copyright 2011 - 2014 OPEN WIDE and 1999 - 2014 Brookins Consulting
See: doc/COPYRIGHT.md for more information on the terms of the copyright and license
OW Simple Operator is licensed under the GNU General Public License.
The complete license agreement is included in the doc/LICENSE file.
OW Simple Operator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
OW Simple Operator is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The GNU GPL gives you the right to use, modify and redistribute OW Simple Operator under certain conditions. The GNU GPL license is distributed with the software, see the file doc/LICENSE.
It is also available at http://www.gnu.org/licenses/gpl.txt
You should have received a copy of the GNU General Public License along with OW Simple Operator in doc/LICENSE. If not, see http://www.gnu.org/licenses/.
Using OW Simple Operator under the terms of the GNU GPL is free (as in freedom).
Warning! Remember to use cache-block tags to ensure operator and function results are not cached incorrectly.
Please read doc/INSTALL.md for more detailed information and example solutions.
Some problems are more common than others.
The most common ones are listed in the the doc/INSTALL.md