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