Пример #1
0
 /**
  *    Equivalent to hitting the retry button on the
  *    browser. Will attempt to repeat the page fetch. If
  *    there is no history to repeat it will give false.
  *    @return string/boolean   Content if fetch succeeded
  *                             else false.
  *    @access public
  */
 function retry()
 {
     $frames = $this->page->getFrameFocus();
     if (count($frames) > 0) {
         $this->loadFrame($frames, $this->page->getUrl(), $this->page->getRequestData());
         return $this->page->getRaw();
     }
     if ($url = $this->history->getUrl()) {
         $this->page = $this->fetch($url, $this->history->getParameters());
         return $this->page->getRaw();
     }
     return false;
 }
Пример #2
0
 /**
  *    Accessor for current frame focus. Will be
  *    false if no frame has focus.
  *    @return integer/string/boolean    Label if any, otherwise
  *                                      the position in the frameset
  *                                      or false if none.
  *    @access public
  */
 function getFrameFocus()
 {
     return $this->page->getFrameFocus();
 }