예제 #1
0
파일: RSS.php 프로젝트: rgantt/websheets
 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'));
 }
예제 #2
0
파일: Entry.php 프로젝트: rgantt/websheets
 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'));
 }
예제 #3
0
 public function __construct()
 {
     $config = ConfigFactory::getConfig();
     $this->theme = $config->get('theme');
 }