/**
  * Creates a system session
  *
  * @author KnowledgeTree Team
  * @access public
  * @param KTAPI $ktapi Instance of the KTAPI object
  * @param USER $user Instance of the user object
  * @return KTAPI_SystemSession
  */
 function KTAPI_SystemSession(&$ktapi, &$user)
 {
     parent::KTAPI_Session($ktapi, $user);
     $this->active = true;
 }
Esempio n. 2
0
 /**
  * End the ktapi session
  */
 function tearDown()
 {
     $this->session->logout();
 }
 /**
  * Sets the current session.
  *
  * @param KTAPI_Session $session
  */
 function set_session($session)
 {
     $user =& $session->get_user();
     $this->userid = $_SESSION['userID'];
     $this->session = $session->get_session();
 }