00001 <?php 00002 // 00003 // Definition of eZModuleOperator class 00004 // 00005 // Created on: <21-Jun-2007 00:00:00 rl> 00006 // 00007 00008 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ## 00009 // SOFTWARE NAME: eZ publish 00010 // SOFTWARE RELEASE: 3.10.x 00011 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 00012 // SOFTWARE LICENSE: GNU General Public License v2.0 00013 // NOTICE: > 00014 // This program is free software; you can redistribute it and/or 00015 // modify it under the terms of version 2.0 of the GNU General 00016 // Public License as published by the Free Software Foundation. 00017 // 00018 // This program is distributed in the hope that it will be useful, 00019 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 // GNU General Public License for more details. 00022 // 00023 // You should have received a copy of version 2.0 of the GNU General 00024 // Public License along with this program; if not, write to the Free 00025 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00026 // MA 02110-1301, USA. 00027 // 00028 // 00029 // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ## 00030 // 00031 00032 /*! \file ezmoduleoperator.php 00033 */ 00034 00035 /*! 00036 \class eZModuleOperator ezmoduleoperator.php 00037 \brief The class eZModuleOperator does 00038 00039 */ 00040 include_once( 'kernel/common/i18n.php' ); 00041 00042 class eZModuleOperator 00043 { 00044 /*! 00045 Constructor 00046 */ 00047 function eZModuleOperator( $name = 'ezmodule' ) 00048 { 00049 $this->Operators = array( $name ); 00050 } 00051 00052 /*! 00053 Returns the operators in this class. 00054 */ 00055 function &operatorList() 00056 { 00057 return $this->Operators; 00058 } 00059 00060 /*! 00061 See eZTemplateOperator::namedParameterList() 00062 */ 00063 function namedParameterList() 00064 { 00065 return array( 'uri' => array( 'type' => 'string', 00066 'required' => false, 00067 'default' => false ) ); 00068 } 00069 /*! 00070 \reimp 00071 */ 00072 function modify( &$tpl, &$operatorName, &$operatorParameters, &$rootNamespace, &$currentNamespace, &$operatorValue, &$namedParameters ) 00073 { 00074 $uri = new eZURI( $namedParameters[ 'uri' ] ); 00075 $check = accessAllowed( $uri ); 00076 $operatorValue = $check['result']; 00077 } 00078 00079 /// \privatesection 00080 var $Operators; 00081 } 00082 00083 00084 ?>
1.6.3