@@ 197-212 (lines=16) @@ | ||
194 | * |
|
195 | * @return Properties |
|
196 | */ |
|
197 | public function setCreated($pValue) |
|
198 | { |
|
199 | if ($pValue === null) { |
|
200 | $pValue = time(); |
|
201 | } elseif (is_string($pValue)) { |
|
202 | if (is_numeric($pValue)) { |
|
203 | $pValue = (int) $pValue; |
|
204 | } else { |
|
205 | $pValue = strtotime($pValue); |
|
206 | } |
|
207 | } |
|
208 | ||
209 | $this->created = $pValue; |
|
210 | ||
211 | return $this; |
|
212 | } |
|
213 | ||
214 | /** |
|
215 | * Get Modified. |
|
@@ 231-246 (lines=16) @@ | ||
228 | * |
|
229 | * @return Properties |
|
230 | */ |
|
231 | public function setModified($pValue) |
|
232 | { |
|
233 | if ($pValue === null) { |
|
234 | $pValue = time(); |
|
235 | } elseif (is_string($pValue)) { |
|
236 | if (is_numeric($pValue)) { |
|
237 | $pValue = (int) $pValue; |
|
238 | } else { |
|
239 | $pValue = strtotime($pValue); |
|
240 | } |
|
241 | } |
|
242 | ||
243 | $this->modified = $pValue; |
|
244 | ||
245 | return $this; |
|
246 | } |
|
247 | ||
248 | /** |
|
249 | * Get Title. |