public function init(array $params = array())
    {
        // Try to load token from session
        if (isset($_SESSION[self::SESSION_PREFIX.'_'.$this->id])) {
            $this->token = $_SESSION[self::SESSION_PREFIX.'_'.$this->id];
        }

        parent::init($params);
    }
public function init(array $params = array())
    {
        // Try to load token from session
        if (isset($_SESSION[self::SESSION_PREFIX.'_'.$this->id])) {
            $this->token = $_SESSION[self::SESSION_PREFIX.'_'.$this->id];
        }

        parent::init($params);
    }
public function init ( array $ params = array ( ) ) { // Try to load token from session if ( isset ( $ _SESSION [ self :: SESSION_PREFIX . '_' . $ this -> id ] ) ) { $ this -> token = $ _SESSION [ self :: SESSION_PREFIX . '_' . $ this -> id ] ; } parent :: init ( $ params ) ; }
Social network initialization
Social network initialization