示例#1
0
 /**
  * Update
  *
  * @param XoopsNotification $notification {@link XoopsNotification} object
  * @param string            $field_name   Name of the field
  * @param mixed             $field_value  Value to write
  *
  * @return bool
  **/
 public function updateByField(XoopsNotification $notification, $field_name, $field_value)
 {
     $notification->unsetNew();
     $notification->setVar($field_name, $field_value);
     return $this->insert($notification);
 }