| @@ 165-176 (lines=12) @@ | ||
| 162 | return $this->i18n_singular_name(); |
|
| 163 | } |
|
| 164 | ||
| 165 | public function getTitle() |
|
| 166 | { |
|
| 167 | if ($title = $this->getField('Title')) { |
|
| 168 | return $title; |
|
| 169 | } else { |
|
| 170 | if (!$this->isInDb()) { |
|
| 171 | return; |
|
| 172 | } |
|
| 173 | ||
| 174 | return $this->config()->title; |
|
| 175 | } |
|
| 176 | } |
|
| 177 | ||
| 178 | public function getCMSTitle() |
|
| 179 | { |
|
| @@ 178-188 (lines=11) @@ | ||
| 175 | } |
|
| 176 | } |
|
| 177 | ||
| 178 | public function getCMSTitle() |
|
| 179 | { |
|
| 180 | if ($title = $this->getField('Title')) { |
|
| 181 | return $this->config()->title . ': ' . $title; |
|
| 182 | } else { |
|
| 183 | if (!$this->isInDb()) { |
|
| 184 | return; |
|
| 185 | } |
|
| 186 | return $this->config()->title; |
|
| 187 | } |
|
| 188 | } |
|
| 189 | ||
| 190 | public function canView($member = null) |
|
| 191 | { |
|