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