Auth_OpenID_Mapping::set PHP Method

set() public method

Sets a key-value pair in the mapping. If the key already exists, its value is replaced with the new value.
public set ( $key, $value )
    function set($key, $value)
    {
        $index = array_search($key, $this->keys);
        if ($index !== false) {
            $this->values[$index] = $value;
        } else {
            $this->keys[] = $key;
            $this->values[] = $value;
        }
    }