1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-04 15:47:32 +02:00

Rename file_get_html to getSimpleHTMLDOM

pmaziere
2016-08-21 13:56:48 +02:00
parent ea175c8b7a
commit 0dfd2587b0

@@ -191,7 +191,7 @@ Following functions should be used for good practice and will support you with y
* [`returnError`](#the-returnerror-function)
* [`returnClientError`](#the-returnclienterror-function)
* [`returnServerError`](#the-returnservererror-function)
* [`file_get_html`](#the-file_get_html-function)
* [`getSimpleHTMLDOM`](#the-getSimpleHTMLDOM-function)
## The `returnError` function
@@ -225,12 +225,12 @@ $this->returnServerError('Your error message')
Use this function when a problem occurs that has nothing to do with the parameters provided by the user. (like: Host service gone missing, empty data received, etc...)
## The `file_get_html` function
## The `getSimpleHTMLDOM` function
This function is a wrapper around the [simple_html_dom](http://simplehtmldom.sourceforge.net/) [file_get_html](http://simplehtmldom.sourceforge.net/manual_api.htm#api) function in order to provide context by design. It is considered good practice to use this function.
```PHP
$html = $this->file_get_html('your URI');
$html = $this->getSimpleHTMLDOM('your URI');
```
# Template