function __construct($tmp_filename_or_string = "", &$tmp_p = "") { parent::__construct($this); $this->boxInfo->type = "ROOT"; if (is_resource($tmp_p)) { $this->_fromFile($tmp_p); } else { if (strlen($tmp_filename_or_string) < 300) { $this->_fromFile(fopen($tmp_filename_or_string, "r")); } else { $this->_fromString($tmp_filename_or_string); } } }