/**
  * 配置文件的读取 ===============================================================================================
  * 
  * @param mixed $jsonFile 从文件中读入的数据String
  * @return void
  */
 public function ConverJson2Rule($jsonFile)
 {
     $this->UpdateTime = date("YmdHis");
     $this->resRule = FromJson($jsonFile);
     $this->set_config();
     $this->set_resource();
     $this->set_site();
 }
Exemplo n.º 2
0
 function read($pTag, $type)
 {
     $_config = $this->thisConfig;
     echo "是否结果文件存在<BR>";
     $rtArray = FromJson($_config[$type]["Result"]);
     if ($rtArray) {
         #结果文件存在,则读取
         echo "3-结果文件存在,读取文件<BR>";
         $this->Resource[$type] = $rtArray;
         return $this->getPage($type, $pTag);
     } else {
         #结果文件不存在,则重新生成文件,并赋值给资源变量
         echo "4-结果文件不存在,调用重新生成<BR>";
         $this->release($type);
         return $this->getPage($type, $pTag);
     }
 }