mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 08:07:33 +02:00
Rename file_get_html to getSimpleHTMLDOM
@@ -191,7 +191,7 @@ Following functions should be used for good practice and will support you with y
|
|||||||
* [`returnError`](#the-returnerror-function)
|
* [`returnError`](#the-returnerror-function)
|
||||||
* [`returnClientError`](#the-returnclienterror-function)
|
* [`returnClientError`](#the-returnclienterror-function)
|
||||||
* [`returnServerError`](#the-returnservererror-function)
|
* [`returnServerError`](#the-returnservererror-function)
|
||||||
* [`file_get_html`](#the-file_get_html-function)
|
* [`getSimpleHTMLDOM`](#the-getSimpleHTMLDOM-function)
|
||||||
|
|
||||||
## The `returnError` 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...)
|
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.
|
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
|
```PHP
|
||||||
$html = $this->file_get_html('your URI');
|
$html = $this->getSimpleHTMLDOM('your URI');
|
||||||
```
|
```
|
||||||
|
|
||||||
# Template
|
# Template
|
||||||
|
Reference in New Issue
Block a user