Details
Description
Currently extensions are not able to supply the policy system with own limitation lists over class functions because the instanciation is limited to 'kernel/'.
Thats makes it unusable or at least unclean for extensions.
I've attached a patch for 3.7.3. Should fit to newer versions as well. I've introduced a new array value to give the extension. Otherwise it will fallback to kernel for backwards compatibility.
Useage example:
$myLimitationValues = array( 'name'=> 'MyLimitations', 'extension' => 'mycoolextension', 'values'=> array(), 'path' => 'classes/', 'file' => 'mycoolclass.php', 'class' => 'coolclass', 'function' => 'fetchList', 'parameter' => array( false ) ); $FunctionList['mymodulefunction'] = array( 'mylimitations' => $myLimitations );
Patching of 3 files was needed because of code duplication.
Attachments
Issue Links
- relates to
-
EZP-7229 Move full path info for function limitation include file to module.php
- Closed