mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 07:37:27 +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)
|
||||
* [`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
|
||||
|
Reference in New Issue
Block a user