|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Collaboration diagram for ILIAS\WOPI\Discovery\Crawler:Public Member Functions | |
| __construct () | |
| validate (URI $discovery_url) | |
| crawl (URI $discovery_url) | |
| crawlContent (string $content) | |
| Parses discovery XML that has already been fetched. More... | |
| getProofKeys () | |
| The proof keys of the discovery read last, null if it publishes none. More... | |
Static Public Member Functions | |
| static | isWebUrl (URI $url) |
Data Fields | |
| const | ALLOWED_SCHEMES = ['https', 'http'] |
| the discovery and the URLs it publishes must be web URLs, anything else (file, php, ...) would let the discovery read local resources or launch script in the ILIAS origin More... | |
Private Member Functions | |
| fetch (URI $discovery_url) | |
| load (?string $content) | |
| parse () | |
| favIconUrl (\SimpleXMLElement $app) | |
Private Attributes | |
| const | XPATH = '/wopi-discovery/net-zone/app' |
| const | TIMEOUT_SECONDS = 10 |
| const | MAX_REDIRECTS = 3 |
| const | MAX_SIZE_BYTES = 2 * 1024 * 1024 |
| array | $crawl_actions = [] |
| string | $content = null |
| SimpleXMLElement | $discovery = null |
| array | $xml_app_elements = null |
Definition at line 28 of file Crawler.php.
| ILIAS\WOPI\Discovery\Crawler::__construct | ( | ) |
Definition at line 50 of file Crawler.php.
| ILIAS\WOPI\Discovery\Crawler::crawl | ( | URI | $discovery_url | ) |
Definition at line 120 of file Crawler.php.
References ILIAS\WOPI\Discovery\Crawler\parse(), and ILIAS\WOPI\Discovery\Crawler\validate().
Here is the call graph for this function:| ILIAS\WOPI\Discovery\Crawler::crawlContent | ( | string | $content | ) |
Parses discovery XML that has already been fetched.
Definition at line 132 of file Crawler.php.
References ILIAS\WOPI\Discovery\Crawler\load(), and ILIAS\WOPI\Discovery\Crawler\parse().
Here is the call graph for this function:
|
private |
Definition at line 231 of file Crawler.php.
References ILIAS\WOPI\Discovery\Crawler\isWebUrl().
Referenced by ILIAS\WOPI\Discovery\Crawler\parse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 79 of file Crawler.php.
References ILIAS\WOPI\Discovery\Crawler\$content.
Referenced by ILIAS\WOPI\Discovery\Crawler\validate().
Here is the caller graph for this function:| ILIAS\WOPI\Discovery\Crawler::getProofKeys | ( | ) |
The proof keys of the discovery read last, null if it publishes none.
Definition at line 144 of file Crawler.php.
|
static |
Definition at line 62 of file Crawler.php.
References ILIAS\Data\URI\getSchema().
Referenced by ILIAS\WOPI\Discovery\Crawler\favIconUrl(), and ILIAS\WOPI\Embed\EmbeddedApplication\getActionLauncherURL().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 96 of file Crawler.php.
References ILIAS\WOPI\Discovery\Crawler\$content.
Referenced by ILIAS\WOPI\Discovery\Crawler\crawlContent(), and ILIAS\WOPI\Discovery\Crawler\validate().
Here is the caller graph for this function:
|
private |
Definition at line 164 of file Crawler.php.
References ILIAS\WOPI\Discovery\Crawler\$crawl_actions, and ILIAS\WOPI\Discovery\Crawler\favIconUrl().
Referenced by ILIAS\WOPI\Discovery\Crawler\crawl(), and ILIAS\WOPI\Discovery\Crawler\crawlContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\WOPI\Discovery\Crawler::validate | ( | URI | $discovery_url | ) |
Definition at line 67 of file Crawler.php.
References ILIAS\WOPI\Discovery\Crawler\fetch(), and ILIAS\WOPI\Discovery\Crawler\load().
Referenced by ILIAS\WOPI\Discovery\Crawler\crawl().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 43 of file Crawler.php.
Referenced by ILIAS\WOPI\Discovery\Crawler\fetch(), and ILIAS\WOPI\Discovery\Crawler\load().
|
private |
Definition at line 42 of file Crawler.php.
Referenced by ILIAS\WOPI\Discovery\Crawler\parse().
|
private |
Definition at line 44 of file Crawler.php.
|
private |
Definition at line 48 of file Crawler.php.
| const ILIAS\WOPI\Discovery\Crawler::ALLOWED_SCHEMES = ['https', 'http'] |
the discovery and the URLs it publishes must be web URLs, anything else (file, php, ...) would let the discovery read local resources or launch script in the ILIAS origin
Definition at line 38 of file Crawler.php.
|
private |
Definition at line 40 of file Crawler.php.
|
private |
Definition at line 41 of file Crawler.php.
|
private |
Definition at line 39 of file Crawler.php.
|
private |
Definition at line 33 of file Crawler.php.