| @@ 304-315 (lines=12) @@ | ||
| 301 | /** |
|
| 302 | * @return string |
|
| 303 | */ |
|
| 304 | public function getTitle() |
|
| 305 | { |
|
| 306 | if ($title = $this->getField('Title')) { |
|
| 307 | return $title; |
|
| 308 | } else { |
|
| 309 | if (!$this->isInDb()) { |
|
| 310 | return; |
|
| 311 | } |
|
| 312 | ||
| 313 | return $this->config()->title; |
|
| 314 | } |
|
| 315 | } |
|
| 316 | ||
| 317 | /** |
|
| 318 | * Get a unique anchor name |
|
| @@ 357-367 (lines=11) @@ | ||
| 354 | /** |
|
| 355 | * @return string |
|
| 356 | */ |
|
| 357 | public function getCMSTitle() |
|
| 358 | { |
|
| 359 | if ($title = $this->getField('Title')) { |
|
| 360 | return $this->config()->title . ': ' . $title; |
|
| 361 | } else { |
|
| 362 | if (!$this->isInDb()) { |
|
| 363 | return; |
|
| 364 | } |
|
| 365 | return $this->config()->title; |
|
| 366 | } |
|
| 367 | } |
|
| 368 | ||
| 369 | public function ControllerTop() |
|
| 370 | { |
|