| @@ 197-208 (lines=12) @@ | ||
| 194 | /** |
|
| 195 | * @return string |
|
| 196 | */ |
|
| 197 | public function getTitle() |
|
| 198 | { |
|
| 199 | if ($title = $this->getField('Title')) { |
|
| 200 | return $title; |
|
| 201 | } else { |
|
| 202 | if (!$this->isInDb()) { |
|
| 203 | return; |
|
| 204 | } |
|
| 205 | ||
| 206 | return $this->config()->title; |
|
| 207 | } |
|
| 208 | } |
|
| 209 | ||
| 210 | /** |
|
| 211 | * @return string |
|
| @@ 213-223 (lines=11) @@ | ||
| 210 | /** |
|
| 211 | * @return string |
|
| 212 | */ |
|
| 213 | public function getCMSTitle() |
|
| 214 | { |
|
| 215 | if ($title = $this->getField('Title')) { |
|
| 216 | return $this->config()->title . ': ' . $title; |
|
| 217 | } else { |
|
| 218 | if (!$this->isInDb()) { |
|
| 219 | return; |
|
| 220 | } |
|
| 221 | return $this->config()->title; |
|
| 222 | } |
|
| 223 | } |
|
| 224 | ||
| 225 | public function ControllerTop() |
|
| 226 | { |
|