code/libraries/joomlatools/component/koowa/user/provider.php
public function fetch($identifier)
    {
        $table = JUser::getTable();

        if ($table->load($identifier))
        {
            $user = JUser::getInstance(0);
            $user->setProperties($table->getProperties());

            $params = new JRegistry;
            $params->loadString($table->params);

            $user->setParameters($params);

            $data = array(
                'id'         => $user->id,
                'email'      => $user->email,
                'name'       => $user->name,
                'username'   => $user->username,
                'password'   => $user->password,
                'salt'       => '',
                'groups'     => JAccess::getGroupsByUser($user->id),
                'roles'      => JAccess::getAuthorisedViewLevels($user->id),
                'authentic'  => !$user->guest,
                'enabled'    => !$user->block,
                'expired'    => (bool) $user->activation,
                'attributes' => $user->getParameters()->toArray()
            );

            $user = $this->create($data);
        }
        else $user = null;

        return $user;
    }
public function fetch($identifier)
    {
        $table = JUser::getTable();

        if ($table->load($identifier))
        {
            $user = JUser::getInstance(0);
            $user->setProperties($table->getProperties());

            $params = new JRegistry;
            $params->loadString($table->params);

            $user->setParameters($params);

            $data = array(
                'id'         => $user->id,
                'email'      => $user->email,
                'name'       => $user->name,
                'username'   => $user->username,
                'password'   => $user->password,
                'salt'       => '',
                'groups'     => JAccess::getGroupsByUser($user->id),
                'roles'      => JAccess::getAuthorisedViewLevels($user->id),
                'authentic'  => !$user->guest,
                'enabled'    => !$user->block,
                'expired'    => (bool) $user->activation,
                'attributes' => $user->getParameters()->toArray()
            );

            $user = $this->create($data);
        }
        else $user = null;

        return $user;
    }
public function fetch ( $ identifier ) { $ table = JUser :: getTable ( ) ; if ( $ table -> load ( $ identifier ) ) { $ user = JUser :: getInstance ( 0 ) ; $ user -> setProperties ( $ table -> getProperties ( ) ) ; $ params = new JRegistry ; $ params -> loadString ( $ table -> params ) ; $ user -> setParameters ( $ params ) ; $ data = array ( 'id' => $ user -> id , 'email' => $ user -> email , 'name' => $ user -> name , 'username' => $ user -> username , 'password' => $ user -> password , 'salt' => '' , 'groups' => JAccess :: getGroupsByUser ( $ user -> id ) , 'roles' => JAccess :: getAuthorisedViewLevels ( $ user -> id ) , 'authentic' => ! $ user -> guest , 'enabled' => ! $ user -> block , 'expired' => ( bool ) $ user -> activation , 'attributes' => $ user -> getParameters ( ) -> toArray ( ) ) ; $ user = $ this -> create ( $ data ) ; } else $ user = null ; return $ user ; }
Fetch the user for the given user identifier from the backend

@param string $identifier A unique user identifier, (i.e a username or email address)
@return KUserInterface|null Returns a UserInterface object or NULL if the user could not be found.
Fetch the user for the given user identifier from the backend