protected function executeInternal($deep)
 {
     // —квозной поток
     $this->oData = $this->iData;
     // ≈сли указан родительский (нисход¤щий или input) поток,
     // то охран¤ем в пам¤ти его
     if ($this->child_flow == false) {
         VarTable::getInstance()->vars[$this->name] = $this->iData;
         if ($this->break_flow) {
             $this->oData = "";
         }
     }
     if ($deep) {
         $this->executeChild();
     } else {
         $this->bData = $this->oData;
     }
     // ≈сли указан детский (восход¤щий или back) поток,
     // то охран¤ем в пам¤ти его
     if ($this->child_flow == true) {
         VarTable::getInstance()->vars[$this->name] = $this->bData;
         if ($this->break_flow) {
             $this->bData = "";
         }
     }
 }
 protected function executeInternal($deep)
 {
     $stop = false;
     $url = VarTable::ParseVariables($this->iData);
     // $url = $this->iData;
     $old = "";
     $this->bData = "";
     $this->page_num = 1;
     do {
         if (stripos(trim($url), "http://") === 0) {
             $this->oData = $this->loadText($url);
         } else {
             $this->oData = $this->read($url);
         }
         if ($deep) {
             $this->executeChild();
         } else {
             $this->bData = $this->oData;
         }
         $old = $url;
         $url = $this->findURL();
         $stop = $url == "" || $url == $old && $this->do_equal;
         $this->page_num++;
     } while ($stop == false);
 }
Beispiel #3
0
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new VarTable();
     }
     return self::$instance;
 }
 protected function executeInternal($deep)
 {
     $this->oData = VarTable::getInstance()->vars[$this->name];
     if ($deep) {
         $this->executeChild();
     } else {
         $this->bData = $this->oData;
     }
 }
 protected function executeInternal($deep)
 {
     $this->oData = VarTable::ParseVariables($this->text);
     if ($deep) {
         $this->executeChild();
     } else {
         $this->bData = $this->oData;
     }
 }
 protected function executeInternal($deep)
 {
     $cookies = VarTable::ParseVariables($this->text);
     CookieSorage::getInstance()->cookies = $cookies;
     // file_put_contents(ScriptLoadAction::$cookie_file_name, $cooks);
     $this->oData = $this->iData;
     if ($deep) {
         $this->executeChild();
     } else {
         $this->bData = $this->oData;
     }
 }