se7enxweb / owsimpleoperator
eZ Publish extension which provides function based custom template operator support to generate complex template logic increadibly simply. Provides for simple template operator implementation guide that is needed quite often, yet missing in eZ Publish. Great for smart developers!
Fund package maintenance!
se7enxweb
Patreon
www.paypal.me/7xweb
account.venmo.com/u/se7enxweb
cash.app/$7xweb
se7enx.com
Installs: 186
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 4
Open Issues: 0
Type:ezpublish-legacy-extension
Requires
- php: >=5.0.0
- se7enxweb/ezpublish-legacy-installer: *
This package is auto-updated.
Last update: 2024-12-25 01:44:05 UTC
README
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
Install
For installation instructions please read the doc/INSTALL.md
Features
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
Constraints
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[]
Copyright
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
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).
Troubleshooting
Remember template results are cached
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.
Read the doc/INSTALL.md
Some problems are more common than others.
The most common ones are listed in the the doc/INSTALL.md