Ejemplo n.º 1
0
 /**
  * This function saves the record matching using the primary key.
  *
  * @access public
  * @override
  * @param boolean $reload                       whether the model should be reloaded
  *                                              after the save is done
  * @param boolean $mode                         TRUE=save, FALSE=update, NULL=automatic
  */
 public function save($reload = FALSE, $mode = NULL)
 {
     $this->token = $this->create_token();
     parent::save($reload, $mode);
 }