The definition of a text area which can be exported.
More...
|
| __construct (context $context, string $component, string $uservisiblename, string $tablename, string $textfield, int $id, ?string $textformatfield=null, ?string $filearea=null, ?int $itemid=null, ?int $pluginfileitemid=null) |
| Create a new exportable_item instance.
|
|
| add_to_archive (zipwriter $archive) |
| Add the content to the archive.
|
|
| get_component () |
| Get the component that this exportable item relates to.
|
|
| get_context () |
| Get the context that this exportable item is for.
|
|
| get_user_visible_name () |
| Get the user visible name for the exportable item.
|
|
|
string | $component = null |
| The component being exported.
|
|
context | $context = null |
| The context associated with this exportable item.
|
|
null string | $filearea |
| The name of a file area for this content.
|
|
int | $id |
| The id in the table.
|
|
null int | $itemid |
| The itemid for files in this text field.
|
|
null int | $pluginfileitemid |
| The itemid used for constructing pluginfiles.
|
|
string | $tablename |
| The name of the table that ha the textarea within it.
|
|
string | $textfield |
| The name of the text field within the table.
|
|
null string | $textformatfield |
| The name of the format field relating to the text field.
|
|
string | $uservisiblename = null |
| The name displayed to the user.
|
|
The definition of a text area which can be exported.
- 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\exportable_items\exportable_textarea::__construct |
( |
context | $context, |
|
|
string | $component, |
|
|
string | $uservisiblename, |
|
|
string | $tablename, |
|
|
string | $textfield, |
|
|
int | $id, |
|
|
?string | $textformatfield = null, |
|
|
?string | $filearea = null, |
|
|
?int | $itemid = null, |
|
|
?int | $pluginfileitemid = null ) |
Create a new exportable_item instance.
If no filearea or itemid is specified the no attempt will be made to export files.
- Parameters
-
context | $context | The context that this content belongs to |
string | $component | The component that this textarea belongs to |
string | $uservisiblename | The name displayed to the user when filtering |
string | $tablename | The name of the table that this textarea is in |
string | $textfield | The field within the tbale |
int | $id | The id in the database |
null | string | $textformatfield | The field in the database relating to the format field if one is present |
null | string | $filearea | The name of the file area for files associated with this text area |
null | int | $itemid | The itemid for files associated with this text area |
null | int | $pluginfileitemid | The itemid to use when constructing the pluginfile URL Some fileareas do not use any itemid in the URL and should therefore provide a null value here. |
◆ add_to_archive()
core\content\export\exportable_items\exportable_textarea::add_to_archive |
( |
zipwriter | $archive | ) |
|
◆ get_component()
core\content\export\exportable_item::get_component |
( |
| ) |
|
|
inherited |
Get the component that this exportable item relates to.
- Return values
-
◆ get_context()
core\content\export\exportable_item::get_context |
( |
| ) |
|
|
inherited |
Get the context that this exportable item is for.
- Return values
-
◆ get_user_visible_name()
core\content\export\exportable_item::get_user_visible_name |
( |
| ) |
|
|
inherited |
Get the user visible name for the exportable item.
- Return values
-
◆ may_include_files()
core\content\export\exportable_items\exportable_textarea::may_include_files |
( |
| ) |
|
|
protected |
Whether files may be included in this textarea.
Both a filearea, and itemid are required for files to be exportable.
- Return values
-
The documentation for this class was generated from the following file:
- lib/classes/content/export/exportable_items/exportable_textarea.php