Exemplo n.º 1
0
 /**
  * Get the content of the current page
  *
  * @param string $url Url where to get the content from
  * @return string | null
  */
 public function getContent($url)
 {
     $this->_sendRequest($url);
     // check if the las request has failed to don`t try and get the body for a failure
     if ($this->_failedRequest) {
         return null;
     }
     // return the body of the last request
     return $this->_lastRequestReponse->getBody();
 }