public function actionEnable()
    {
        
        $userService = tao_models_classes_UserService::singleton();
        $this->outVerbose("Connecting to TAO as '" . $this->options['user'] . "' ...");
        if ($userService->loginUser($this->options['user'], $this->options['password'])){
            $this->outVerbose("Connected to TAO as '" . $this->options['user'] . "'.");
            $this->addLanguageToOntology();
            $userService->logout();
            $this->outVerbose("Disconnected from TAO.");
        }else{
            $this->err("Unable to connect to TAO as '" . $this->options['user'] . "'. Please check user name and password.", true);
        }
        
    }
public function actionEnable()
    {
        
        $userService = tao_models_classes_UserService::singleton();
        $this->outVerbose("Connecting to TAO as '" . $this->options['user'] . "' ...");
        if ($userService->loginUser($this->options['user'], $this->options['password'])){
            $this->outVerbose("Connected to TAO as '" . $this->options['user'] . "'.");
            $this->addLanguageToOntology();
            $userService->logout();
            $this->outVerbose("Disconnected from TAO.");
        }else{
            $this->err("Unable to connect to TAO as '" . $this->options['user'] . "'. Please check user name and password.", true);
        }
        
    }
public function actionEnable ( ) { $ userService = tao_models_classes_UserService :: singleton ( ) ; $ this -> outVerbose ( "Connecting to TAO as '" . $ this -> options [ 'user' ] . "' ..." ) ; if ( $ userService -> loginUser ( $ this -> options [ 'user' ] , $ this -> options [ 'password' ] ) ) { $ this -> outVerbose ( "Connected to TAO as '" . $ this -> options [ 'user' ] . "'." ) ; $ this -> addLanguageToOntology ( ) ; $ userService -> logout ( ) ; $ this -> outVerbose ( "Disconnected from TAO." ) ; } else { $ this -> err ( "Unable to connect to TAO as '" . $ this -> options [ 'user' ] . "'. Please check user name and password." , true ) ; } }
Short description of method actionEnable

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@return void
Short description of method actionEnable