public function set($identifier, $path, $force = false)
    {
        // Check if already exist and prevent overwrite if not force
        if ((true === isset(self::$path[$identifier])) && ((null !== self::$path[$identifier]) && (false === $force))) {
            throw new Doozr_Exception(
                sprintf(
                    'Path with identifier "%s" already defined! Set $force to TRUE to overwrite it.',
                    $identifier
                )
            );
        }

        // Create/update path
        self::$path[$identifier] = self::fixPath($path);

        return true;
    }
public function set($identifier, $path, $force = false)
    {
        // Check if already exist and prevent overwrite if not force
        if ((true === isset(self::$path[$identifier])) && ((null !== self::$path[$identifier]) && (false === $force))) {
            throw new Doozr_Exception(
                sprintf(
                    'Path with identifier "%s" already defined! Set $force to TRUE to overwrite it.',
                    $identifier
                )
            );
        }

        // Create/update path
        self::$path[$identifier] = self::fixPath($path);

        return true;
    }
public function set ( $ identifier , $ path , $ force = false ) { // Check if already exist and prevent overwrite if not force if ( ( true === isset ( self :: $ path [ $ identifier ] ) ) && ( ( null !== self :: $ path [ $ identifier ] ) && ( false === $ force ) ) ) { throw new Doozr_Exception ( sprintf ( 'Path with identifier "%s" already defined! Set $force to TRUE to overwrite it.' , $ identifier ) ) ; } // Create/update path self :: $ path [ $ identifier ] = self :: fixPath ( $ path ) ; return true ; }
Register an path from external - maybe created at runtime.

@param string $identifier Name of the path which should be set
@param string $path       Path which should be set
@param bool   $force      TRUE to force overwrite of already existing identifier, FALSE to prevent from overwrite

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE on success, otherwise FALSE
@static

@throws Doozr_Exception
Register an path from external - maybe created at runtime .