This class describes the files which were exported, and any text content that those files were contained in.
More...
|
| __construct (array $files=[]) |
| Constructor for the exported_item.
|
|
| add_file (string $relativefilepath, bool $incontent=false, ?string $url=null) |
| Add a file to the list of exported files.
|
|
| add_files (array $files, bool $incontent=false) |
| Add a list of files to the list of exported files.
|
|
| get_all_files () |
| Get a list of all files in the exported item.
|
|
| get_content () |
| Fetch the rewritten content.
|
|
| get_content_files () |
| Get a list of all files present in the content.
|
|
| get_noncontent_files () |
| Get all files which are not already referenced in the content.
|
|
| get_template_data () |
| Get all template data for this exported item.
|
|
| get_title () |
| Get a short, descriptive name associated with the exported content, if one is avaiable.
|
|
| has_any_data () |
| Check whether the exported_item includes any data.
|
|
| set_content (string $content) |
| Set the rewritten content.
|
|
| set_title (string $title) |
| Set a title for this exported item.
|
|
|
string | $content = '' |
| Any string content for export
|
|
string[] | $contentfiles = [] |
| A list of files which were exported and are present in the content.
|
|
string[] | $files = [] |
| A list of files which were exported and are not present in the content.
|
|
string | $title = null |
| A short, descriptive, name for this exported item.
|
|
This class describes the files which were exported, and any text content that those files were contained in.
- Copyright
- 2020 Andrew Nicols andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core\content\export\exported_item::__construct |
( |
array | $files = [] | ) |
|
Constructor for the exported_item.
- Parameters
-
array | $files | A list of all files which were exported |
◆ add_file()
core\content\export\exported_item::add_file |
( |
string | $relativefilepath, |
|
|
bool | $incontent = false, |
|
|
?string | $url = null ) |
Add a file to the list of exported files.
- Parameters
-
string | $relativefilepath | The path to the content relative to the exported context |
bool | $incontent | Whether this file is included within the content |
null | string | $url | The URL to use of the live file where the file could not be stored in the archive |
◆ add_files()
core\content\export\exported_item::add_files |
( |
array | $files, |
|
|
bool | $incontent = false ) |
Add a list of files to the list of exported files.
- Parameters
-
string[] | $files | The path to the content relative to the exported context |
bool | $incontent | Whether this file is included within the content |
◆ get_all_files()
core\content\export\exported_item::get_all_files |
( |
| ) |
|
Get a list of all files in the exported item.
- Return values
-
◆ get_content()
core\content\export\exported_item::get_content |
( |
| ) |
|
Fetch the rewritten content.
- Return values
-
◆ get_content_files()
core\content\export\exported_item::get_content_files |
( |
| ) |
|
Get a list of all files present in the content.
That is those files which were exported, and which are referenced in some fashion. These files typically do not need to be listed separately.
- Return values
-
◆ get_noncontent_files()
core\content\export\exported_item::get_noncontent_files |
( |
| ) |
|
Get all files which are not already referenced in the content.
These files will typically be displayed in a separate list.
- Return values
-
◆ get_template_data()
core\content\export\exported_item::get_template_data |
( |
| ) |
|
Get all template data for this exported item.
- Return values
-
◆ get_title()
core\content\export\exported_item::get_title |
( |
| ) |
|
Get a short, descriptive name associated with the exported content, if one is avaiable.
- Return values
-
◆ has_any_data()
core\content\export\exported_item::has_any_data |
( |
| ) |
|
Check whether the exported_item includes any data.
- Return values
-
◆ set_content()
core\content\export\exported_item::set_content |
( |
string | $content | ) |
|
Set the rewritten content.
- Parameters
-
◆ set_title()
core\content\export\exported_item::set_title |
( |
string | $title | ) |
|
Set a title for this exported item.
- Parameters
-
The documentation for this class was generated from the following file:
- lib/classes/content/export/exported_item.php