Exemple #1
0
 protected function postConstructor()
 {
     parent::postConstructor();
     $filter = $this->data->order($this->count_field) . ' LIMIT 1';
     if (!is_null($view = $this->startDataView($filter)) && $view->rewind()) {
         $this->_row = $this->_old_row = $view->current();
         // Increment count field
         ++$this->_row[$this->count_field];
     }
 }
Exemple #2
0
 /**
  * Custom post construction method
  *
  * Overrides the default post-constructor method appending the constructor
  * error processing.
  */
 protected function postConstructor()
 {
     if (isset($this->_constructor_error)) {
         TIP::notifyError($this->_constructor_error);
         $this->_constructor_error = null;
         $this->_row = null;
     }
     // This update should work on login, logout and password change
     $this->_updateCookie();
     parent::postConstructor();
 }