示例#1
0
文件: Xml.php 项目: hpbuniat/SiteQ
 /**
  * The Construct
  *
  * @param  string $filename
  * @param  arrray $arguments
  *
  * @return SiteQ_Report_AbstractReport
  */
 public function __construct($filename, $arguments)
 {
     parent::__construct($filename, $arguments);
     $this->_document = new DOMDocument();
     $this->_root = $this->_document->createElement('siteq');
     $this->_document->appendChild($this->_root);
 }
示例#2
0
文件: Html.php 项目: hpbuniat/SiteQ
 /**
  * The Construct
  *
  * @param  string $filename
  * @param  arrray $arguments
  *
  * @return SiteQ_Report_AbstractReport
  */
 public function __construct($filename, $arguments)
 {
     parent::__construct($filename, $arguments);
     if (is_dir($filename) !== true) {
         mkdir($filename, 0777, true);
     }
 }