public function __construct() { parent::__construct(); $this->viewInfo['view']['title'] = '{Name} :: Roles'; $this->viewInfo['view']['description'] = '{Name}'; $this->viewInfo['view']['canonicalURL'] = PROTOCOL_HOST_PORT . "{$this->pathInURL}/view/{Type}"; }
public function __construct() { $this->indexSort = 'SortOrder ASC, Value ASC'; $this->indexLimit = 1000; if ($GLOBALS['app']->getCurrentUser()->hasRole('ADMIN')) { $this->indexClauses = "WHERE ID IN (SELECT TagID FROM BlogPost_Tag) ORDER BY {$this->indexSort}"; } else { // Do not list tags for unpublished blog posts. -- cwells $this->indexClauses = "WHERE ID IN (SELECT TagID FROM BlogPost_Tag INNER JOIN BlogPost ON BlogPostID = BlogPost.ID WHERE BlogPost.Published IS NOT NULL) ORDER BY {$this->indexSort}"; } parent::__construct(); $this->viewInfo['view']['title'] = '{Value} :: Tags'; $this->viewInfo['view']['description'] = 'Items tagged {Value} on ' . SITE_DOMAIN . '.'; $this->viewInfo['view']['canonicalURL'] = PROTOCOL_HOST_PORT . "{$this->pathInURL}/view/{Slug}"; }
public function __construct() { $this->adminSort = 'Published IS NULL DESC, Published DESC'; $this->indexSort = 'Published DESC'; $this->indexClauses = "WHERE Published IS NOT NULL ORDER BY {$this->indexSort}"; parent::__construct(); $this->viewInfo['add']['title'] = 'Add Blog Post'; $this->viewInfo['admin']['title'] = 'Blog Admin'; $this->viewInfo['admin']['description'] = 'Blog Admin on ' . DOMAIN . '.'; $this->viewInfo['edit']['title'] = 'Edit Blog Post'; $this->viewInfo['index']['title'] = 'Blog'; $this->viewInfo['index']['description'] = 'Recent blog posts by ' . SITE_AUTHOR . ' on ' . SITE_DOMAIN . '.'; $this->viewInfo['page']['title'] = 'Blog - Page {PageNumber}'; $this->viewInfo['page']['description'] = 'Older blog posts by ' . SITE_AUTHOR . ' on ' . SITE_DOMAIN . '.'; $this->viewInfo['save']['title'] = 'Save Blog Post'; $this->viewInfo['view']['title'] = '{Title} :: Blog'; $this->viewInfo['view']['description'] = '{Summary}'; $this->viewInfo['view']['canonicalURL'] = PROTOCOL_HOST_PORT . "{$this->pathInURL}/view/{Slug}"; }