public function connect($user, $password)
    {
        $returnValue = (bool) false;

       
        $userService = tao_models_classes_UserService::singleton();
        $returnValue = $userService->loginUser($user, $password);
        $this->setConnected($returnValue);
       

        return (bool) $returnValue;
    }
public function connect($user, $password)
    {
        $returnValue = (bool) false;

       
        $userService = tao_models_classes_UserService::singleton();
        $returnValue = $userService->loginUser($user, $password);
        $this->setConnected($returnValue);
       

        return (bool) $returnValue;
    }
public function connect ( $ user , $ password ) { $ returnValue = ( bool ) false ; $ userService = tao_models_classes_UserService :: singleton ( ) ; $ returnValue = $ userService -> loginUser ( $ user , $ password ) ; $ this -> setConnected ( $ returnValue ) ; return ( bool ) $ returnValue ; }
Connect to the generis API by using the CLI arguments 'user' and
It returns true or false depending on the connection establishement.

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  string user
@param  string password
@return boolean
Connect to the generis API by using the CLI arguments user and It returns true or false depending on the connection establishement .