Auth_Basic::addInfo PHP Method

addInfo() public method

Add additional info to be stored in user session.
public addInfo ( string | array $key, mixed $val = null )
$key string | array
$val mixed
    public function addInfo($key, $val = null)
    {
        if (is_array($key)) {
            foreach ($key as $a => $b) {
                $this->addInfo($a, $b);
            }
            return $this;
        }
        $this->debug("Gathered info: {$key}={$val}");
        $this->info[$key] = $val;
        return $this;
    }