Auth_Yadis_Discovery::getManager PHP Method

getManager() public method

public getManager ( $force = false )
$force True if the manager should be returned regardless of whether it's a manager for $this->url.
    function getManager($force = false)
    {
        // Extract the YadisServiceManager for this object's URL and
        // suffix from the session.
        $manager_str = $this->session->get($this->getSessionKey());
        $manager = null;
        if ($manager_str !== null) {
            $loader = new Auth_Yadis_ManagerLoader();
            $manager = $loader->fromSession(unserialize($manager_str));
        }
        if ($manager && ($manager->forURL($this->url) || $force)) {
            return $manager;
        }
    }