Files
luos/thirdparty/html2ps_pdf/fetcher._interface.class.php
Paula Quispe 9eb7d6cac2 HOR-2689
2017-08-03 17:00:30 -04:00

27 lines
995 B
PHP

<?php
class Fetcher {
/**
* Fetches the data identified by $data_id, wraps it into FetchedData object together with
* any auxiliary information (like HTTP response headers, number of redirect, fetched file information
* or something else) and returns this object.
*
* @param String $data_id unique identifier of the data to be fetched (URI, file path, primary key of the database record or something else)
*
* @return FetchedData object containing the fetched file contents and auxiliary information, if exists.
*/
function get_data($data_id) {
die("Oops. Inoverridden 'get_data' method called in ".get_class($this));
}
/**
* @return String value of base URL to use for resolving relative links inside the document
*/
function get_base_url() {
die("Oops. Inoverridden 'get_base_url' method called in ".get_class($this));
}
function error_message() {
die("Oops. Inoverridden 'error_message' method called in ".get_class($this));
}
}
?>