code/libraries/joomlatools/library/user/user.php
public function setData($data)
    {
        parent::setData($data);

        //Set the user data
        $this->getSession()->set('user', KObjectConfig::unbox($data));

        return $this;
    }
public function setData($data)
    {
        parent::setData($data);

        //Set the user data
        $this->getSession()->set('user', KObjectConfig::unbox($data));

        return $this;
    }
public function setData ( $ data ) { parent :: setData ( $ data ) ; //Set the user data $ this -> getSession ( ) -> set ( 'user' , KObjectConfig :: unbox ( $ data ) ) ; return $ this ; }
Set the user data from an array

@param  array $data An associative array of data
@return KUser
Set the user data from an array