Exemplo n.º 1
0
 /**
  * Constructor of this class.
  * @param \phpsec\User $userObj     The object of class \phpsec\User
  */
 public function __construct($userObj)
 {
     $this->userID = $userObj->getUserID();
     if (!XUser::isXUserExists($this->userID)) {
         //If user's records are not present in the DB, then insert them
         SQL("INSERT INTO XUSER (`USERID`) VALUES (?)", array($this->userID));
     }
 }