예제 #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
 function Comments($action)
 {
     global $prefix, $path;
     if (!is_null($prefix) && !is_null($path)) {
         $this->prefix = $prefix;
         $this->path = $path;
     }
     $this->init();
     $this->action = $action;
     $this->db = DblFactory::getConn();
     $this->config = ConfigFactory::getConfig();
     $this->siteUrl = '';
 }
예제 #3
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'));
 }