/** * Mark as deleted * * Method will mark this record as deleted, not deleting it permanently. * * @return boolean */ function mark_deleted() { if ($result = parent::mark_deleted($this->id)) { $this->delete_linked(); } return $result; }