示例#1
0
 public function __construct()
 {
     parent::__construct();
     $config = $this->session->userdata("db_config");
     if ($config) {
         $this->db = $this->load->database($config, TRUE);
     }
 }
 public function __construct()
 {
     parent::__construct();
     // core seamless update
     $this->__update();
     // module update
     if (!self::$module_updated) {
         self::$module_updated = TRUE;
         $this->__update_module();
     }
 }
 public function __construct()
 {
     parent::__construct();
     // core seamless update
     $this->db->trans_start();
     $this->__update();
     $this->db->trans_complete();
     // module update
     if (!self::$module_updated) {
         self::$module_updated = true;
         $this->__update_module();
     }
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     $this->page_break_separator = "/<div(\\s)*style(\\s)*=(\\s)*\"page-break-after(\\s)*:(\\s)*always(;)*\"(\\s)*>(\\s)*<span(\\s)*style(\\s)*=(\\s)*\"display(\\s)*:(\\s)*none(;)*\">(\\s)*&nbsp;(\\s)*<\\/span>(\\s)*<\\/div>/i";
     if (self::$__article_properties == NULL) {
         self::$__article_properties = array();
     }
     $default_properties = array('is_article_cached' => FALSE, 'is_category_cached' => FALSE, 'is_category_article_cached' => FALSE, 'articles' => array(), 'categories' => array(), 'article_categories' => array(), 'photos' => array());
     foreach ($default_properties as $key => $val) {
         if (!array_key_exists($key, self::$__article_properties)) {
             self::$__article_properties[$key] = $default_properties[$key];
         }
     }
 }
示例#5
0
 public function __construct()
 {
     parent::__construct();
     $this->page_break_separator = "/<div(\\s)*style(\\s)*=(\\s)*\"page-break-after(\\s)*:(\\s)*always(;)*\"(\\s)*>(\\s)*<span(\\s)*style(\\s)*=(\\s)*\"display(\\s)*:(\\s)*none(;)*\">(\\s)*&nbsp;(\\s)*<\\/span>(\\s)*<\\/div>/i";
 }
示例#6
0
 public function __construct()
 {
     parent::__construct();
 }
示例#7
0
 public function __construct()
 {
     parent::__construct();
     $this->separator = '<div style="page-break-after: always;">' . PHP_EOL . '	<span style="display: none;">&nbsp;</span></div>';
 }
示例#8
0
 public function __construct()
 {
     parent::__construct();
     $this->page_break_separator = '/(<div style=\\"page-break-after: always;\\">\\s*<span style=\\"display: none;\\">&nbsp;<\\/span><\\/div>)/i';
 }