2016-09-05 19:05:19 +03:00
|
|
|
<?php
|
|
|
|
interface BridgeInterface {
|
2017-02-13 21:26:39 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Collects data from the site
|
|
|
|
*/
|
2016-09-10 21:41:11 +03:00
|
|
|
public function collectData();
|
2017-02-13 21:26:39 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns an array of cachable elements
|
|
|
|
*
|
|
|
|
* @return array Associative array of cachable elements
|
|
|
|
*/
|
|
|
|
public function getCachable();
|
|
|
|
|
2017-02-13 22:56:19 +03:00
|
|
|
/**
|
|
|
|
* Returns the description
|
|
|
|
*
|
|
|
|
* @return string Description
|
|
|
|
*/
|
|
|
|
public function getDescription();
|
|
|
|
|
2017-02-13 21:26:39 +03:00
|
|
|
/**
|
|
|
|
* Return an array of extra information
|
|
|
|
*
|
|
|
|
* @return array Associative array of extra information
|
|
|
|
*/
|
|
|
|
public function getExtraInfos();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns an array of collected items
|
|
|
|
*
|
|
|
|
* @return array Associative array of items
|
|
|
|
*/
|
|
|
|
public function getItems();
|
|
|
|
|
2017-02-13 22:56:19 +03:00
|
|
|
/**
|
|
|
|
* Returns the bridge maintainer
|
|
|
|
*
|
|
|
|
* @return string Bridge maintainer
|
|
|
|
*/
|
|
|
|
public function getMaintainer();
|
|
|
|
|
2017-02-13 21:26:39 +03:00
|
|
|
/**
|
|
|
|
* Returns the bridge name
|
|
|
|
*
|
|
|
|
* @return string Bridge name
|
|
|
|
*/
|
2016-09-10 21:41:11 +03:00
|
|
|
public function getName();
|
2017-02-13 21:26:39 +03:00
|
|
|
|
2017-02-13 22:56:19 +03:00
|
|
|
/**
|
|
|
|
* Returns the bridge parameters
|
|
|
|
*
|
|
|
|
* @return array Bridge parameters
|
|
|
|
*/
|
|
|
|
public function getParameters();
|
|
|
|
|
2017-02-13 21:26:39 +03:00
|
|
|
/**
|
|
|
|
* Returns the bridge URI
|
|
|
|
*
|
|
|
|
* @return string Bridge URI
|
|
|
|
*/
|
2016-09-10 21:41:11 +03:00
|
|
|
public function getURI();
|
2017-02-13 21:26:39 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the cache instance
|
|
|
|
*
|
|
|
|
* @param object CacheInterface The cache instance
|
|
|
|
*/
|
|
|
|
public function setCache(\CacheInterface $cache);
|
2018-03-14 20:06:36 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the timeout for clearing the cache files. The timeout must be
|
|
|
|
* specified between 1..86400 seconds (max. 24 hours). The default timeout
|
|
|
|
* (specified by the bridge maintainer) applies for invalid values.
|
|
|
|
*
|
|
|
|
* @param int $timeout The cache timeout in seconds
|
|
|
|
*/
|
|
|
|
public function setCacheTimeout($timeout);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the cache timeout
|
|
|
|
*
|
|
|
|
* @return int Cache timeout
|
|
|
|
*/
|
|
|
|
public function getCacheTimeout();
|
2016-09-05 19:05:19 +03:00
|
|
|
}
|