lib/ezutils/classes/ezmodule.php
function initialize( $path, $file, $moduleName, $checkFileExistence = true )
    {
        if ( $checkFileExistence === false || file_exists( $file ) )
        {
            unset( $FunctionList );
            unset( $Module );
            unset( $ViewList );
            include( $file );
            $this->Functions = $ViewList;
            if ( isset( $FunctionList ) and
                 is_array( $FunctionList ) and
                 count( $FunctionList ) > 0 )
            {
                ksort( $FunctionList, SORT_STRING );
                $this->FunctionList = $FunctionList;
            }
            else
            {
                $this->FunctionList = array();
            }
            if ( empty( $Module ) )
            {
                $Module = array( "name" => "null",
                                 "variable_params" => false,
                                 "function" => array() );
            }
            $this->Module = $Module;
            $this->Name = $moduleName;
            $this->Path = $path;
            $this->Title = "";
            $this->UIContext = 'navigation';
            $this->UIComponent = $moduleName;

            $uiComponentMatch = 'module';
            if ( isset( $this->Module['ui_component_match'] ) )
            {
                $uiComponentMatch = $this->Module['ui_component_match'];
            }
            $this->UIComponentMatch = $uiComponentMatch;

            foreach( $this->Functions as $key => $dummy)
            {
                $this->Functions[$key]["uri"] = "/$moduleName/$key";
            }
        }
        else
        {
            $this->Functions = array();
            $this->Module = array( "name" => "null",
                                   "variable_params" => false,
                                   "function" => array() );
            $this->Name = $moduleName;
            $this->Path = $path;
            $this->Title = "";
            $this->UIContext = 'navigation';
            $this->UIComponent = $moduleName;
            $this->UIComponentMatch = 'module';
        }
        $this->HookList = array();
        $this->ExitStatus = self::STATUS_IDLE;
        $this->ErrorCode = 0;
        $this->ViewActions = array();
        $this->OriginalParameters = null;
        $this->UserParameters = array();

        // Load in navigation part overrides
        $ini = eZINI::instance( 'module.ini' );
        $this->NavigationParts = $ini->variable( 'ModuleOverrides', 'NavigationPart' );
    }
function initialize( $path, $file, $moduleName, $checkFileExistence = true )
    {
        if ( $checkFileExistence === false || file_exists( $file ) )
        {
            unset( $FunctionList );
            unset( $Module );
            unset( $ViewList );
            include( $file );
            $this->Functions = $ViewList;
            if ( isset( $FunctionList ) and
                 is_array( $FunctionList ) and
                 count( $FunctionList ) > 0 )
            {
                ksort( $FunctionList, SORT_STRING );
                $this->FunctionList = $FunctionList;
            }
            else
            {
                $this->FunctionList = array();
            }
            if ( empty( $Module ) )
            {
                $Module = array( "name" => "null",
                                 "variable_params" => false,
                                 "function" => array() );
            }
            $this->Module = $Module;
            $this->Name = $moduleName;
            $this->Path = $path;
            $this->Title = "";
            $this->UIContext = 'navigation';
            $this->UIComponent = $moduleName;

            $uiComponentMatch = 'module';
            if ( isset( $this->Module['ui_component_match'] ) )
            {
                $uiComponentMatch = $this->Module['ui_component_match'];
            }
            $this->UIComponentMatch = $uiComponentMatch;

            foreach( $this->Functions as $key => $dummy)
            {
                $this->Functions[$key]["uri"] = "/$moduleName/$key";
            }
        }
        else
        {
            $this->Functions = array();
            $this->Module = array( "name" => "null",
                                   "variable_params" => false,
                                   "function" => array() );
            $this->Name = $moduleName;
            $this->Path = $path;
            $this->Title = "";
            $this->UIContext = 'navigation';
            $this->UIComponent = $moduleName;
            $this->UIComponentMatch = 'module';
        }
        $this->HookList = array();
        $this->ExitStatus = self::STATUS_IDLE;
        $this->ErrorCode = 0;
        $this->ViewActions = array();
        $this->OriginalParameters = null;
        $this->UserParameters = array();

        // Load in navigation part overrides
        $ini = eZINI::instance( 'module.ini' );
        $this->NavigationParts = $ini->variable( 'ModuleOverrides', 'NavigationPart' );
    }
function initialize ( $ path , $ file , $ moduleName , $ checkFileExistence = true ) { if ( $ checkFileExistence === false || file_exists ( $ file ) ) { unset ( $ FunctionList ) ; unset ( $ Module ) ; unset ( $ ViewList ) ; include ( $ file ) ; $ this -> Functions = $ ViewList ; if ( isset ( $ FunctionList ) and is_array ( $ FunctionList ) and count ( $ FunctionList ) > 0 ) { ksort ( $ FunctionList , SORT_STRING ) ; $ this -> FunctionList = $ FunctionList ; } else { $ this -> FunctionList = array ( ) ; } if ( empty ( $ Module ) ) { $ Module = array ( "name" => "null" , "variable_params" => false , "function" => array ( ) ) ; } $ this -> Module = $ Module ; $ this -> Name = $ moduleName ; $ this -> Path = $ path ; $ this -> Title = "" ; $ this -> UIContext = 'navigation' ; $ this -> UIComponent = $ moduleName ; $ uiComponentMatch = 'module' ; if ( isset ( $ this -> Module [ 'ui_component_match' ] ) ) { $ uiComponentMatch = $ this -> Module [ 'ui_component_match' ] ; } $ this -> UIComponentMatch = $ uiComponentMatch ; foreach ( $ this -> Functions as $ key => $ dummy ) { $ this -> Functions [ $ key ] [ "uri" ] = "/$moduleName/$key" ; } } else { $ this -> Functions = array ( ) ; $ this -> Module = array ( "name" => "null" , "variable_params" => false , "function" => array ( ) ) ; $ this -> Name = $ moduleName ; $ this -> Path = $ path ; $ this -> Title = "" ; $ this -> UIContext = 'navigation' ; $ this -> UIComponent = $ moduleName ; $ this -> UIComponentMatch = 'module' ; } $ this -> HookList = array ( ) ; $ this -> ExitStatus = self :: STATUS_IDLE ; $ this -> ErrorCode = 0 ; $ this -> ViewActions = array ( ) ; $ this -> OriginalParameters = null ; $ this -> UserParameters = array ( ) ; // Load in navigation part overrides $ ini = eZINI :: instance ( 'module.ini' ) ; $ this -> NavigationParts = $ ini -> variable ( 'ModuleOverrides' , 'NavigationPart' ) ; }
Initializes the module object.

@param string $path
Directory where the module is declared, without the modulename
component
@param string $file
Full (relative) path to the module.php file describing the module
@param string $moduleName
The module name (content, user...)
@param bool $checkFileExistence
Wether or not $file's existence should be checked
@return void
Initializes the module object .