Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($fileName, $fileEncoding='UTF-8') | |
add ($url, $filename) | |
clear () | |
download () | |
getData () | |
read () | |
write () | |
Data Fields | |
$data | |
$fileEncoding | |
$fileName | |
Definition at line 45 of file bagit_fetch.php.
BagItFetch::__construct | ( | $fileName, | |
$fileEncoding = 'UTF-8' |
|||
) |
This initializes a new BagItFetch instance.
string | $fileName | This is the file name for the fetch file. |
string | $fileEncoding | This is the encoding to use when reading or writing the fetch file. The default is 'UTF-8'. |
Definition at line 94 of file bagit_fetch.php.
References $fileEncoding, $fileName, and read().
BagItFetch::add | ( | $url, | |
$filename | |||
) |
This adds an entry to the fetch data.
string | $url | This is the URL to load the file from. |
string | $filename | This is the file name, relative to the fetch file's directory, to save the data to. |
Definition at line 182 of file bagit_fetch.php.
References write().
BagItFetch::clear | ( | ) |
This clears the fetch data and the file.
Definition at line 167 of file bagit_fetch.php.
BagItFetch::download | ( | ) |
This downloads the files in the fetch information that aren't on the file system.
Definition at line 197 of file bagit_fetch.php.
BagItFetch::getData | ( | ) |
This returns the fetch data.
Definition at line 110 of file bagit_fetch.php.
References $data.
BagItFetch::read | ( | ) |
This reads the data from the fetch file and populates the data array.
Definition at line 120 of file bagit_fetch.php.
Referenced by __construct().
BagItFetch::write | ( | ) |
This writes the data to the fetch file.
Definition at line 144 of file bagit_fetch.php.
References $data.
Referenced by add().
array BagItFetch::$data |
The data from the fetch file.
This is an array-list containing array-mappings with the keys 'url', 'length', and 'filename'.
Definition at line 71 of file bagit_fetch.php.
string BagItFetch::$fileEncoding |
The character encoding for the data in the fetch file.
Definition at line 81 of file bagit_fetch.php.
Referenced by __construct().
string BagItFetch::$fileName |
The file name containing the fetch information.
Definition at line 58 of file bagit_fetch.php.
Referenced by __construct().