本文整理匯總了PHP中simple_html_dom::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP simple_html_dom::__construct方法的具體用法?PHP simple_html_dom::__construct怎麽用?PHP simple_html_dom::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類simple_html_dom
的用法示例。
在下文中一共展示了simple_html_dom::__construct方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
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);
}
示例2: __construct
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);
}
示例3:
function CI_Phpdom()
{
//php dom construct
parent::__construct();
}
示例4: __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);
}
示例5: __construct
public function __construct()
{
parent::__construct();
}