function __construct() { $this->ADMIN_CONF = CI()->loadConfig('manage'); CI()->load->model('page_attribute_model'); if (!empty($this->ADMIN_CONF['publish']['live_domain']) && $this->ADMIN_CONF['publish']['live_domain'] == $_SERVER['SERVER_NAME'] && $this->ADMIN_CONF['publish']['publish_method'] == 'local_table') { // If live and publish method is 'local_table' then we need to switch to another table $this->table = 'page_published'; } else { if ($this->ADMIN_CONF['publish']['staging_shows'] == 'published') { // Check if staging should show draft content or not $this->table = 'page_published'; } } // Set up auto join. Must be done after the table name has been set. $this->auto_join = array('table' => 'template', 'conditions' => $this->table . '.template_id = template.template_id', 'method' => 'LEFT', 'fields' => 'template.template_file_name, template.template_html_xsl_path, template.template_xml_xsl_path, template.template_options, template.template_attributes'); parent::__construct(); }
function __construct() { parent::__construct(); $this->FILE_CONF = CI()->loadConfig('file'); }
function __construct() { parent::__construct(); CI()->load->helper('time'); }