ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
isValidParentType (string $a_type) | |
Determines the parent types that allow to include the new content component. More... | |
getJavascriptFiles (string $a_mode) | |
getCssFiles (string $a_mode) | |
setMode (string $a_mode) | |
getMode () | |
getUIClassInstance () | |
Get UI plugin class. More... | |
setPageObj (ilPageObject $a_page_obj) | |
Inject the page object This must be public to be called by ilPCPlugged But the page object should not directly be accessible by plugins. More... | |
getPageId () | |
Get the id of the page. More... | |
getParentId () | |
Get the object id of the parent object. More... | |
getParentType () | |
Get the object type og the parent object. More... | |
onClone (array &$a_properties, string $a_plugin_version) | |
This function is called when the page content is cloned. More... | |
afterRepositoryCopy (array &$a_properties, array $mapping, int $source_ref_id, string $a_plugin_version) | |
This function is called after repository (container) objects have been copied. More... | |
onDelete (array $a_properties, string $a_plugin_version, bool $move_operation=false) | |
This function is called before the page content is deleted. More... | |
![]() | |
getMessage () | |
__construct (\ilDBInterface $db, \ilComponentRepositoryWrite $component_repository, string $id) | |
getPluginName () | |
getId () | |
getVersion () | |
Only very little classes seem to care about this: More... | |
getDirectory () | |
Only very little classes seem to care about this: More... | |
isActive () | |
Only very little classes seem to care about this: More... | |
needsUpdate () | |
install () | |
uninstall () | |
activate () | |
This will update (if required) and activate the plugin. More... | |
deactivate () | |
update () | |
loadLanguageModule () | |
Load language module for plugin. More... | |
txt (string $a_var) | |
Get Language Variable (prefix will be prepended automatically) More... | |
getTemplate (string $a_template, bool $a_par1=true, bool $a_par2=true) | |
ILIAS is moving towards UI components and plugins are expected to use these components. More... | |
getStyleSheetLocation (string $a_css_file) | |
ILIAS is moving towards UI components and plugins are expected to use these components. More... | |
addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname) | |
ILIAS is moving towards UI components and plugins are expected to use these components. More... | |
getGlobalScreenProviderCollection () | |
exchangeUIRendererAfterInitialization (\ILIAS\DI\Container $dic) | |
This methods allows to replace the UI Renderer (see src/UI) of ILIAS after initialization by returning a closure returning a custom renderer. More... | |
exchangeUIFactoryAfterInitialization (string $dic_key, \ILIAS\DI\Container $dic) | |
This methods allows to replace some factory for UI Components (see src/UI) of ILIAS after initialization by returning a closure returning a custom factory. More... | |
Data Fields | |
const | TXT_CMD_INSERT = "cmd_insert" |
const | CMD_INSERT = "insert" |
const | CMD_EDIT = "edit" |
Protected Attributes | |
string | $mode |
![]() | |
ilDBInterface | $db |
ilComponentRepositoryWrite | $component_repository |
string | $id |
ilPluginLanguage | $language_handler = null |
bool | $lang_initialised = false |
ProviderCollection | $provider_collection |
string | $message = '' |
Private Attributes | |
ilPageObject | $page_obj = null |
Additional Inherited Members | |
![]() | |
init () | |
Object initialization. More... | |
getPluginInfo () | |
getComponentInfo () | |
getPluginSlotInfo () | |
afterInstall () | |
If you cannot get rid of the requirement to use this, adjust the install method in your subclass instead. More... | |
beforeUninstall () | |
If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More... | |
afterUninstall () | |
If you cannot get rid of the requirement to use this, adjust the uninstall method in your subclass instead. More... | |
beforeActivation () | |
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
afterActivation () | |
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
afterDeactivation () | |
If you cannot get rid of the requirement to use this, adjust the activate method in your subclass instead. More... | |
updateDatabase () | |
beforeUpdate () | |
If you cannot get rid of the requirement to use this, adjust the update method in your subclass instead. More... | |
afterUpdate () | |
getLanguageHandler () | |
buildLanguageHandler () | |
readEventListening () | |
clearEventListening () | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Abstract parent class for all page component plugin classes.
Definition at line 24 of file class.ilPageComponentPlugin.php.
ilPageComponentPlugin::afterRepositoryCopy | ( | array & | $a_properties, |
array | $mapping, | ||
int | $source_ref_id, | ||
string | $a_plugin_version | ||
) |
This function is called after repository (container) objects have been copied.
array | $a_properties | properties saved in the page, should be modified if neccessary |
array | $mapping | repository object mapping array |
int | $source_ref_id | ref id of source object |
string | $a_plugin_version | plugin version of the properties |
Definition at line 134 of file class.ilPageComponentPlugin.php.
ilPageComponentPlugin::getCssFiles | ( | string | $a_mode | ) |
Definition at line 46 of file class.ilPageComponentPlugin.php.
ilPageComponentPlugin::getJavascriptFiles | ( | string | $a_mode | ) |
Definition at line 41 of file class.ilPageComponentPlugin.php.
|
final |
ilPageComponentPlugin::getPageId | ( | ) |
Get the id of the page.
Definition at line 85 of file class.ilPageComponentPlugin.php.
ilPageComponentPlugin::getParentId | ( | ) |
Get the object id of the parent object.
Definition at line 96 of file class.ilPageComponentPlugin.php.
ilPageComponentPlugin::getParentType | ( | ) |
Get the object type og the parent object.
Definition at line 107 of file class.ilPageComponentPlugin.php.
ilPageComponentPlugin::getUIClassInstance | ( | ) |
Get UI plugin class.
Definition at line 64 of file class.ilPageComponentPlugin.php.
References ilPlugin\getPluginName().
|
abstract |
Determines the parent types that allow to include the new content component.
See https://docu.ilias.de/goto_docu_pg_56942_42.html
string | $a_type |
ilPageComponentPlugin::onClone | ( | array & | $a_properties, |
string | $a_plugin_version | ||
) |
This function is called when the page content is cloned.
array | $a_properties | (properties saved in the page, should be modified if neccessary) |
string | $a_plugin_version | (plugin version of the properties) |
Definition at line 120 of file class.ilPageComponentPlugin.php.
ilPageComponentPlugin::onDelete | ( | array | $a_properties, |
string | $a_plugin_version, | ||
bool | $move_operation = false |
||
) |
This function is called before the page content is deleted.
array | $a_properties | properties saved in the page (will be deleted afterwards) |
string | $a_plugin_version | plugin version of the properties |
bool | $move_operation | true, if the delete is part of a move operation (cut for paste, move, ...) |
Definition at line 148 of file class.ilPageComponentPlugin.php.
|
final |
Definition at line 51 of file class.ilPageComponentPlugin.php.
ilPageComponentPlugin::setPageObj | ( | ilPageObject | $a_page_obj | ) |
Inject the page object This must be public to be called by ilPCPlugged But the page object should not directly be accessible by plugins.
Definition at line 77 of file class.ilPageComponentPlugin.php.
|
protected |
Definition at line 31 of file class.ilPageComponentPlugin.php.
Referenced by getMode().
|
private |
Definition at line 30 of file class.ilPageComponentPlugin.php.
const ilPageComponentPlugin::CMD_EDIT = "edit" |
Definition at line 28 of file class.ilPageComponentPlugin.php.
Referenced by ilPCPluggedGUI\edit(), and ilPageComponentPluginGUI\getHTML().
const ilPageComponentPlugin::CMD_INSERT = "insert" |
Definition at line 27 of file class.ilPageComponentPlugin.php.
Referenced by ilPCPluggedGUI\edit(), and ilPageComponentPluginGUI\getHTML().
const ilPageComponentPlugin::TXT_CMD_INSERT = "cmd_insert" |
Definition at line 26 of file class.ilPageComponentPlugin.php.
Referenced by ILIAS\COPage\Editor\Components\Page\PageQueryActionHandler\getAddCommands(), and ilPageObjectGUI\getComponentPluginsXML().