comment_setting_model.class.php 539 B

123456789101112131415161718192021
  1. <?php
  2. defined('IN_PHPCMS') or exit('No permission resources.');
  3. pc_base::load_sys_class('model', '', 0);
  4. class comment_setting_model extends model {
  5. public $table_name;
  6. public function __construct() {
  7. $this->db_config = pc_base::load_config('database');
  8. $this->db_setting = 'comment';
  9. $this->table_name = 'comment_setting';
  10. parent::__construct();
  11. }
  12. /**
  13. * 按站点ID返回站点配置情况
  14. * @param integer $siteid 站点ID
  15. */
  16. public function site($siteid) {
  17. return $this->get_one(array('siteid'=>$siteid));
  18. }
  19. }
  20. ?>