public __construct ( $str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT ) |
function __construct($str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT)
{
if ($str) {
if (preg_match("/^http:\\/\\//i", $str) || is_file($str)) {
$this->load_file($str);
} else {
$this->load($str, $lowercase, $stripRN, $defaultBRText);
}
}
// Forcing tags to be closed implies that we don't trust the html, but it can lead to parsing errors if we SHOULD trust the html.
if (!$forceTagsClosed) {
$this->optional_closing_array = array();
}
$this->_target_charset = $target_charset;
}
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); }