@@ 146-157 (lines=12) @@ | ||
143 | return $this->i18n_singular_name(); |
|
144 | } |
|
145 | ||
146 | public function getTitle() |
|
147 | { |
|
148 | if ($title = $this->getField('Title')) { |
|
149 | return $title; |
|
150 | } else { |
|
151 | if (!$this->isInDb()) { |
|
152 | return; |
|
153 | } |
|
154 | ||
155 | return $this->config()->title; |
|
156 | } |
|
157 | } |
|
158 | ||
159 | public function getCMSTitle() |
|
160 | { |
|
@@ 159-169 (lines=11) @@ | ||
156 | } |
|
157 | } |
|
158 | ||
159 | public function getCMSTitle() |
|
160 | { |
|
161 | if ($title = $this->getField('Title')) { |
|
162 | return $this->config()->title . ': ' . $title; |
|
163 | } else { |
|
164 | if (!$this->isInDb()) { |
|
165 | return; |
|
166 | } |
|
167 | return $this->config()->title; |
|
168 | } |
|
169 | } |
|
170 | ||
171 | public function canView($member = null) |
|
172 | { |