예제 #1
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];
         }
     }
 }