예제 #1
0
파일: Xml.php 프로젝트: TeaMeow/Avane
 public function load($path)
 {
     if (!class_exists('Tale\\Dom\\Parser')) {
         throw new Exception("Failed to load XML config: Please install the " . "`talesoft/tale-dom` package");
     }
     return $this->getOptionsFromElement(Element::fromFile($path));
 }
예제 #2
0
파일: Dom.php 프로젝트: talesoft/tale-dom
 public static function fromFile($path, $encoding = null, $html = false)
 {
     if ($html) {
         return HtmlElement::fromFile($path, $encoding);
     }
     return Element::fromFile($path, $encoding);
 }