public function activateEntryPoint($entryId, $target)
    {
        $success = false;
        $entryPoints = $this->getOption(self::OPTION_ENTRYPOINTS);
        if (!isset($entryPoints[$entryId])) {
            throw new \common_exception_InconsistentData('Unknown entrypoint '.$entryId);
        }
        $actives = $this->hasOption($target) ? $this->getOption($target) : array();
        if (!in_array($entryId, $actives)) {
            $actives[] = $entryId;
            $this->setOption($target, $actives);
            $success = true;
        }

        return $success;
    }
public function activateEntryPoint($entryId, $target)
    {
        $success = false;
        $entryPoints = $this->getOption(self::OPTION_ENTRYPOINTS);
        if (!isset($entryPoints[$entryId])) {
            throw new \common_exception_InconsistentData('Unknown entrypoint '.$entryId);
        }
        $actives = $this->hasOption($target) ? $this->getOption($target) : array();
        if (!in_array($entryId, $actives)) {
            $actives[] = $entryId;
            $this->setOption($target, $actives);
            $success = true;
        }

        return $success;
    }
public function activateEntryPoint ( $ entryId , $ target ) { $ success = false ; $ entryPoints = $ this -> getOption ( self :: OPTION_ENTRYPOINTS ) ; if ( ! isset ( $ entryPoints [ $ entryId ] ) ) { throw new \ common_exception_InconsistentData ( 'Unknown entrypoint ' . $ entryId ) ; } $ actives = $ this -> hasOption ( $ target ) ? $ this -> getOption ( $ target ) : array ( ) ; if ( ! in_array ( $ entryId , $ actives ) ) { $ actives [ ] = $ entryId ; $ this -> setOption ( $ target , $ actives ) ; $ success = true ; } return $ success ; }
Activate an existing entry point for a specific target

@param string $entryId
@param string $target
@throws \common_exception_InconsistentData
@return boolean success
Activate an existing entry point for a specific target