lib/ezutils/classes/ezmoduleoperationinfo.php
function objectForClass( $className )
    {
        if ( !isset( $GLOBALS['eZModuleOperationClassObjectList'] ) )
        {
            $GLOBALS['eZModuleOperationClassObjectList'] = array();
        }
        if ( isset( $GLOBALS['eZModuleOperationClassObjectList'][$className] ) )
        {
            return $GLOBALS['eZModuleOperationClassObjectList'][$className];
        }

        return $GLOBALS['eZModuleOperationClassObjectList'][$className] = new $className();
    }
function objectForClass( $className )
    {
        if ( !isset( $GLOBALS['eZModuleOperationClassObjectList'] ) )
        {
            $GLOBALS['eZModuleOperationClassObjectList'] = array();
        }
        if ( isset( $GLOBALS['eZModuleOperationClassObjectList'][$className] ) )
        {
            return $GLOBALS['eZModuleOperationClassObjectList'][$className];
        }

        return $GLOBALS['eZModuleOperationClassObjectList'][$className] = new $className();
    }
function objectForClass ( $ className ) { if ( ! isset ( $ GLOBALS [ 'eZModuleOperationClassObjectList' ] ) ) { $ GLOBALS [ 'eZModuleOperationClassObjectList' ] = array ( ) ; } if ( isset ( $ GLOBALS [ 'eZModuleOperationClassObjectList' ] [ $ className ] ) ) { return $ GLOBALS [ 'eZModuleOperationClassObjectList' ] [ $ className ] ; } return $ GLOBALS [ 'eZModuleOperationClassObjectList' ] [ $ className ] = new $ className ( ) ; }
Helper method that keeps and returns the instances of operation objects
@param string $className The class the method should return an object for
@return $className
@private
@todo Use a static variable instead of globals
Helper method that keeps and returns the instances of operation objects