Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

ezmoduleoperator.php
Go to the documentation of this file.
1 <?php
18 class eZModuleOperator
19 {
25 public function __construct( $name = 'ezmodule' )
26 {
27 $this->Operators = array( $name );
28 }
29
33 function operatorList()
34 {
35 return $this->Operators;
36 }
37
41 function namedParameterList()
42 {
43 return array( 'uri' => array( 'type' => 'string',
44 'required' => false,
45 'default' => false ) );
46 }
47 function modify( $tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters, $placement )
48 {
49 $uri = new eZURI( $namedParameters[ 'uri' ] );
50 $moduleName = $uri->element( 0 );
51 $moduleList = eZINI::instance( 'module.ini' )->variable( 'ModuleSettings', 'ModuleList' );
52 if ( in_array( $moduleName, $moduleList, true ) )
53 $check = eZModule::accessAllowed( $uri );
54 $operatorValue = isset( $check['result'] ) ? $check['result'] : false;
55 }
56
58 public $Operators;
59 }
60
61
62 ?>
eZModuleOperator
The class eZModuleOperator does.
Definition: ezmoduleoperator.php:19
eZModuleOperator\namedParameterList
namedParameterList()
Definition: ezmoduleoperator.php:41
eZModuleOperator\__construct
__construct( $name='ezmodule')
Definition: ezmoduleoperator.php:25
eZModuleOperator\modify
modify( $tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, &$operatorValue, $namedParameters, $placement)
Definition: ezmoduleoperator.php:47
eZModuleOperator\operatorList
operatorList()
Definition: ezmoduleoperator.php:33
eZModuleOperator\$Operators
$Operators
Definition: ezmoduleoperator.php:58
eZModule\accessAllowed
static accessAllowed(eZURI $uri)
Definition: ezmodule.php:2087
eZURI
Definition: ezuri.php:28
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.