コード例 #1
0
ファイル: browser.php プロジェクト: ilune/simpletest
 /**
  *    Starts with a fresh browser with no
  *    cookie or any other state information. The
  *    exception is that a default proxy will be
  *    set up if specified in the options.
  *    @access public
  */
 public function __construct()
 {
     $this->user_agent = $this->createUserAgent();
     $this->user_agent->useProxy(SimpleTest::getDefaultProxy(), SimpleTest::getDefaultProxyUsername(), SimpleTest::getDefaultProxyPassword());
     $this->page = new SimplePage();
     $this->history = $this->createHistory();
     $this->ignore_frames = false;
     $this->maximum_nested_frames = DEFAULT_MAX_NESTED_FRAMES;
 }
コード例 #2
0
ファイル: browser.php プロジェクト: ljarray/dbpedia
 /**
  *    Starts with a fresh browser with no
  *    cookie or any other state information. The
  *    exception is that a default proxy will be
  *    set up if specified in the options.
  *    @access public
  */
 function SimpleBrowser()
 {
     $this->_user_agent =& $this->_createUserAgent();
     $this->_user_agent->useProxy(SimpleTest::getDefaultProxy(), SimpleTest::getDefaultProxyUsername(), SimpleTest::getDefaultProxyPassword());
     $this->_page =& new SimplePage();
     $this->_history =& $this->_createHistory();
     $this->_ignore_frames = false;
     $this->_maximum_nested_frames = DEFAULT_MAX_NESTED_FRAMES;
 }