public function mark_as_deleted() { global $dbh; if (docwatch_watch::check_watch_rights($this->num_watch)) { $query = "update docwatch_items set item_status = '2' where id_item = '" . $this->id . "' "; if (pmb_mysql_query($query, $dbh)) { return true; } else { return false; } } }
public function sync($watch_owner) { if (docwatch_watch::check_watch_rights($this->num_watch)) { //TODO: utiliser le watch_owner passé en parametre pour requeter sur la base avec les bons droits $this->get_new_items($watch_owner); $this->update_last_date(); } }