| IDF_Search::remove($this);␊ |
| }␊ |
| ␊ |
| function restore() {␊ |
| $this->due_dtime = substr($this->due_dtime, 0, 10);␊ |
| }␊ |
| ␊ |
| function preSave($create=false)␊ |
| {␊ |
| if ($this->id == '') {␊ |
| $this->creation_dtime = gmdate('Y-m-d H:i:s');␊ |
| }␊ |
| if($this->due_dtime) {␊ |
| $this->due_dtime .= ' 23:59:59';␊ |
| if($this->due_dtime and !empty($this->due_dtime)) {␊ |
| $datetime = $this->due_dtime . ' 23:59:59';␊ |
| if(date('Y-m-d', strtotime($datetime)) === $this->due_dtime) {␊ |
| $this->due_dtime = $datetime;␊ |
| }␊ |
| }␊ |
| $this->modif_dtime = gmdate('Y-m-d H:i:s');␊ |
| }␊ |