PHP Class Auth_OpenID_AX_AttrInfo

Datei anzeigen Open project: openid/php-openid Class Usage Examples

Public Methods

Method Description
__construct ( string $type_uri, integer $count, boolean $required, string $alias ) Construct an attribute information object. Do not call this directly; call make(.
make ( $type_uri, $count = 1, $required = false, $alias = null ) Construct an attribute information object. For parameter details, see the constructor.
wantsUnlimitedValues ( ) When processing a request for this attribute, the OP should call this method to determine whether all available attribute values were requested. If self.count == UNLIMITED_VALUES, this returns True. Otherwise this returns False, in which case self.count is an integer.

Method Details

__construct() public method

..) instead.
public __construct ( string $type_uri, integer $count, boolean $required, string $alias )
$type_uri string The type URI for this attribute.
$count integer The number of values of this type to request.
$required boolean Whether the attribute will be marked as required in the request.
$alias string The name that should be given to this attribute in the request.

make() static public method

Construct an attribute information object. For parameter details, see the constructor.
static public make ( $type_uri, $count = 1, $required = false, $alias = null )

wantsUnlimitedValues() public method

When processing a request for this attribute, the OP should call this method to determine whether all available attribute values were requested. If self.count == UNLIMITED_VALUES, this returns True. Otherwise this returns False, in which case self.count is an integer.