| @@ 69-75 (lines=7) @@ | ||
| 66 | * Checks if it is date and later then current. |
|
| 67 | * @param mixed $value date |
|
| 68 | */ |
|
| 69 | public function setDate($value) |
|
| 70 | { |
|
| 71 | $timestamp = strtotime($value); |
|
| 72 | if ($timestamp !== false && $timestamp > $this->_date) { |
|
| 73 | $this->_date = $timestamp; |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | public function getDate() |
|
| 78 | { |
|
| @@ 102-109 (lines=8) @@ | ||
| 99 | return $this->_comments; |
|
| 100 | } |
|
| 101 | ||
| 102 | public function setDate($value) |
|
| 103 | { |
|
| 104 | $timestamp = strtotime($value); |
|
| 105 | if ($timestamp !== false) { |
|
| 106 | $this->_date = $timestamp; |
|
| 107 | } |
|
| 108 | ||
| 109 | return $this; |
|
| 110 | } |
|
| 111 | ||
| 112 | public function getDate() |
|