__construct() public method

public __construct ( $str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT )
Beispiel #1
0
 function __construct($base_url, $page = NULL)
 {
     if (!$page) {
         parent::__construct($base_url);
     } else {
         parent::__construct($base_url . $page);
     }
     $this->base_url = $base_url;
     $this->faculty_info = $this->get_faculty_info();
     $this->faculty_thumb_srcs = $this->get_faculty_thumb_srcs();
     $this->faculty_members = array_map(array($this, "merge_obj_arrays"), $this->faculty_info, $this->faculty_thumb_srcs);
 }
Beispiel #2
0
 public function __construct($str = null)
 {
     $lowercase = true;
     $forceTagsClosed = true;
     $target_charset = DEFAULT_TARGET_CHARSET;
     $stripRN = true;
     $defaultBRText = DEFAULT_BR_TEXT;
     $defaultSpanText = DEFAULT_SPAN_TEXT;
     parent::__construct(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
     if (empty($str) || strlen($str) > MAX_FILE_SIZE) {
         throw new \RuntimeException('Wrong $str param. Strlen = ' . ($str ? strlen($str) : 0));
     }
     $this->load($str, $lowercase, $stripRN);
 }
Beispiel #3
0
 function CI_Phpdom()
 {
     //php dom construct
     parent::__construct();
 }
 public function __construct($sHtml)
 {
     $this->block_tags[HDOM_ROOT_PSEUDOTAG] = 1;
     $this->dom_node_class = 'DomFragNode';
     parent::__construct($sHtml, false, false, 'UTF-8', false);
 }
 public function __construct()
 {
     parent::__construct();
 }