phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Source for file OpenIDConfigurator.php

Documentation is available at OpenIDConfigurator.php

  1. <?php
  2. /**
  3.  * @copyright Copyright 2005-2010 RedIRIS, http://www.rediris.es/
  4.  *
  5.  *  This file is part of phpPoA2.
  6.  *
  7.  *  phpPoA2 is free software: you can redistribute it and/or modify
  8.  *  it under the terms of the GNU General Public License as published by
  9.  *  the Free Software Foundation, either version 3 of the License, or
  10.  *  (at your option) any later version.
  11.  *
  12.  *  phpPoA2 is distributed in the hope that it will be useful,
  13.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *  GNU General Public License for more details.
  16.  *
  17.  *  You should have received a copy of the GNU General Public License
  18.  *  along with phpPoA2. If not, see <http://www.gnu.org/licenses/>.
  19.  *
  20.  * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
  21.  * @version 2.0
  22.  * @author Miguel Macías <miguel.macias@upv.es>
  23.  * @filesource
  24.  */
  25.  
  26. /**
  27.  * Configurator class for the OpenID Authentication Engine.
  28.  * @package phpPoA2
  29.  * @subpackage OpenIDAuthenticationEngine
  30.  */
  31.  
  32.     protected $mandatory_options = array('Providers');
  33.  
  34.     /**
  35.      * 
  36.      * @return string 
  37.      */
  38.     public function getLoginURL({
  39.         return (array_key_exists('LoginURL'$this->cfg)) $this->cfg['LoginURL''';
  40.     }
  41.  
  42.     /**
  43.      * 
  44.      * @return string 
  45.      */
  46.     public function getLogoutURL({
  47.         return (array_key_exists('LogoutURL'$this->cfg)) $this->cfg['LogoutURL''';
  48.     }
  49.     /**
  50.      * 
  51.      * @return boolean 
  52.      */
  53.     public function isAutoLogin({
  54.         return (array_key_exists('AutoLogin'$this->cfg)) $this->cfg['AutoLogin'=== true false;
  55.     }
  56.  
  57.     /**
  58.      * 
  59.      * @return array 
  60.      */
  61.     public function getProviders({
  62.         return $this->cfg['Providers'];
  63.     }
  64. }
  65.  
  66. ?>

Documentation generated on Tue, 14 Jun 2011 12:22:11 +0200 by phpDocumentor 1.4.3