Auth_OpenID_AX_FetchRequest::iterAttrs PHP Method

iterAttrs() public method

Iterate over the AttrInfo objects that are contained in this fetch_request.
public iterAttrs ( )
    function iterAttrs()
    {
        return array_values($this->requested_attributes);
    }

Usage Example

Ejemplo n.º 1
0
 function test_requestUnlimitedValues()
 {
     $msg = new Auth_OpenID_AX_FetchRequest();
     $result = $msg->parseExtensionArgs(array('mode' => 'fetch_request', 'required' => 'foo', 'type.foo' => 'urn:foo', 'count.foo' => Auth_OpenID_AX_UNLIMITED_VALUES));
     $attrs = $msg->iterAttrs();
     $foo = $attrs[0];
     $this->assertTrue($foo->count == Auth_OpenID_AX_UNLIMITED_VALUES);
     $this->assertTrue($foo->wantsUnlimitedValues());
 }