1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace Ppb\Db\Table\Row;
- class ContentSection extends AbstractRow
- {
-
- public function link()
- {
- if ($slug = $this->getData('slug')) {
- return $slug;
- }
- else {
- return array(
- 'module' => 'app',
- 'controller' => 'sections',
- 'action' => 'view',
- 'name' => $this->getData('name'),
- 'id' => $this->getData('id'),
- );
- }
- }
- }
|