D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-php83
/
root
/
usr
/
share
/
pear
/
OpenID
/
Extension
/
Filename :
UI.php
back
Copy
<?php /** * OpenID_Extension_UI * * PHP Version 5.2.0+ * * @uses OpenID_Extension * @category Auth * @package OpenID * @author Bill Shupp <hostmaster@shupp.org> * @copyright 2009 Bill Shupp * @license http://www.opensource.org/licenses/bsd-license.php FreeBSD * @link http://github.com/shupp/openid */ /** * Required files */ require_once 'OpenID/Extension.php'; /** * Provides support for the UI extension * * @uses OpenID_Extension * @category Auth * @package OpenID * @author Bill Shupp <hostmaster@shupp.org> * @copyright 2009 Bill Shupp * @license http://www.opensource.org/licenses/bsd-license.php FreeBSD * @link http://github.com/shupp/openid */ class OpenID_Extension_UI extends OpenID_Extension { /** * URI of the UI namespace * * @var string */ protected $namespace ='http://specs.openid.net/extensions/ui/1.0'; /** * Alias to use * * @var string */ protected $alias = 'ui'; /** * Valid modes (only 'popup' so far) * * @var array */ protected $validModes = array('popup'); /** * Adds mode checking to set() * * @param mixed $key Key * @param mixed $value Value * * @return void */ public function set($key, $value) { if (strpos($key, 'mode') === 0 && !in_array($value, $this->validModes) ) { throw new OpenID_Extension_Exception( 'Invalid UI mode: ' . $key, OpenID_Exception::INVALID_VALUE ); } parent::set($key, $value); } } ?>
Name
Size
Last Modified
Owner
Permissions
Actions
AX.php
2.081
KB
May 20 2024 4:33:40
root
0644
Exception.php
0.785
KB
May 20 2024 4:33:40
root
0644
OAuth.php
3.086
KB
May 20 2024 4:33:40
root
0644
SREG10.php
1.914
KB
May 20 2024 4:33:40
root
0644
SREG11.php
1.579
KB
May 20 2024 4:33:40
root
0644
UI.php
1.604
KB
May 20 2024 4:33:40
root
0644
2017 © D7net | D704T team