@@ 138-149 (lines=12) @@ | ||
135 | return $this->i18n_singular_name(); |
|
136 | } |
|
137 | ||
138 | public function getTitle() |
|
139 | { |
|
140 | if ($title = $this->getField('Title')) { |
|
141 | return $title; |
|
142 | } else { |
|
143 | if (!$this->isInDb()) { |
|
144 | return; |
|
145 | } |
|
146 | ||
147 | return $this->config()->title; |
|
148 | } |
|
149 | } |
|
150 | ||
151 | public function getCMSTitle() |
|
152 | { |
|
@@ 151-161 (lines=11) @@ | ||
148 | } |
|
149 | } |
|
150 | ||
151 | public function getCMSTitle() |
|
152 | { |
|
153 | if ($title = $this->getField('Title')) { |
|
154 | return $this->config()->title . ': ' . $title; |
|
155 | } else { |
|
156 | if (!$this->isInDb()) { |
|
157 | return; |
|
158 | } |
|
159 | return $this->config()->title; |
|
160 | } |
|
161 | } |
|
162 | ||
163 | public function canView($member = null) |
|
164 | { |