public function __construct() { $this->config = ConfigFactory::getConfig(); $this->db = DblFactory::getConn(); $this->toShow = $this->config->get('xmlPostsToShow') - 1; $this->numPosts = $this->db->numRows($this->db->query('select * from ' . $this->config->get('prefix') . '_news')); }
public function __construct($n) { $this->config = ConfigFactory::getConfig(); $this->db = DblFactory::getConn(); $this->entryData = $this->db->fetchObject($this->db->query('select * from ' . $this->config->get('prefix') . '_news order by id desc limit ' . $n . ',1')); }
public function __construct() { $config = ConfigFactory::getConfig(); $this->theme = $config->get('theme'); }