@@ 262-273 (lines=12) @@ | ||
259 | /** |
|
260 | * @return string |
|
261 | */ |
|
262 | public function getTitle() |
|
263 | { |
|
264 | if ($title = $this->getField('Title')) { |
|
265 | return $title; |
|
266 | } else { |
|
267 | if (!$this->isInDb()) { |
|
268 | return; |
|
269 | } |
|
270 | ||
271 | return $this->config()->title; |
|
272 | } |
|
273 | } |
|
274 | ||
275 | /** |
|
276 | * @return string |
|
@@ 278-288 (lines=11) @@ | ||
275 | /** |
|
276 | * @return string |
|
277 | */ |
|
278 | public function getCMSTitle() |
|
279 | { |
|
280 | if ($title = $this->getField('Title')) { |
|
281 | return $this->config()->title . ': ' . $title; |
|
282 | } else { |
|
283 | if (!$this->isInDb()) { |
|
284 | return; |
|
285 | } |
|
286 | return $this->config()->title; |
|
287 | } |
|
288 | } |
|
289 | ||
290 | public function ControllerTop() |
|
291 | { |