update() public méthode

Update the current record using the current data.
public update ( )
 /**
  * Overload the update method to auto-insert
  * the timestamp for modified if not exist
  *
  * @return void
  * @author Sam de Freyssinet
  */
 public function update()
 {
     if (!isset($this->_fields['modified'])) {
         return parent::update();
     }
     if ($this->modified === NULL) {
         $this->modified = time();
     }
     return parent::update();
 }