ILIAS
Release_5_0_x_branch Revision 61816
|
Abstract parent class for all advanced md claiming plugin classes. More...
Public Member Functions | |
getComponentType () | |
Get Component Type. | |
getComponentName () | |
Get Component Name. | |
getSlot () | |
Get Slot Name. | |
getSlotId () | |
Get Slot ID. | |
checkPermission ($a_user_id, $a_context_type, $a_context_id, $a_action_id, $a_action_sub_id) | |
Check permission. | |
Public Member Functions inherited from ilPlugin | |
__construct () | |
Constructor. | |
getPluginName () | |
Get Plugin Name. | |
getId () | |
Get Id. | |
getLastUpdateVersion () | |
Get Version of last update. | |
getVersion () | |
Get Current Version (from plugin.php file). | |
getIliasMinVersion () | |
Get Required ILIAS min. | |
getIliasMaxVersion () | |
Get Required ILIAS max. | |
getActive () | |
Get Active. | |
setDBVersion ($a_dbversion) | |
Set DB Version. | |
getDBVersion () | |
Get DB Version. | |
writeDBVersion ($a_dbversion) | |
Write DB version to database. | |
getDirectory () | |
Get Plugin Directory. | |
includeClass ($a_class_file_name) | |
Include (once) a class file. | |
getPrefix () | |
Get plugin prefix, used for lang vars. | |
getTablePrefix () | |
Get db table plugin prefix. | |
updateLanguages () | |
Update all languages. | |
updateDatabase () | |
Update database. | |
loadLanguageModule () | |
Load language module for plugin. | |
txt ($a_var) | |
Get Language Variable (prefix will be prepended automatically) | |
getTemplate ($a_template, $a_par1=true, $a_par2=true) | |
Get template from plugin. | |
getImagePath ($a_img) | |
Get image path. | |
getStyleSheetLocation ($a_css_file) | |
Get css file location. | |
addBlockFile ($a_tpl, $a_var, $a_block, $a_tplname) | |
Add template content to placeholder variable. | |
isActive () | |
Check whether plugin is active. | |
needsUpdate () | |
Check whether update is needed. | |
activate () | |
Activate. | |
deactivate () | |
Deactivate. | |
update () | |
Update plugin. | |
lookupNameForId ($a_ctype, $a_cname, $a_slot_id, $a_plugin_id) | |
Lookup name for id. | |
lookupIdForName ($a_ctype, $a_cname, $a_slot_id, $a_plugin_name) | |
Lookup id for name. |
Static Public Member Functions | |
static | hasDBRecord ($a_record_id) |
Check if record has db entry. | |
static | createDBRecord ($a_title, $a_description, $a_active, array $a_obj_types) |
Create record db entry. | |
static | updateDBRecord ($a_record_id, $a_title, $a_description, $a_active, array $a_obj_types) |
Update record db entry. | |
static | deleteDBRecord ($a_record_id) |
Delete record db entry. | |
static | hasDBField ($a_field_id) |
Check if field has db entry. | |
static | createDBField ($a_record_id, $a_type, $a_title, $a_description=null, $a_searchable=false, array $a_definition=null) |
Create field db entry. | |
static | updateDBField ($a_field_id, $a_title, $a_description=null, $a_searchable=false, array $a_definition=null) |
Update field db entry. | |
static | deleteDBField ($a_field_id) |
Delete field db entry. | |
static | setDBSubstitution ($a_obj_type, $a_show_description, $a_show_field_names) |
Set substitution DB entry (for object type) | |
static | hasDBFieldSubstitution ($a_obj_type, $a_field_id) |
Is substitution active for field in object type. | |
static | setDBFieldSubstitution ($a_obj_type, $a_field_id, $a_bold=false, $a_newline=false) |
Update field substitution entry in DB. | |
static | removeDBFieldSubstitution ($a_obj_type, $a_field_id) |
Remove field substitution entry in DB. | |
Static Public Member Functions inherited from ilPlugin | |
static | _getDirectory ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get plugin directory. | |
static | getAvailableLangFiles ($a_lang_directory) |
Get array of all language files in the plugin. | |
static | hasConfigureClass ($a_slot_dir, $a_name) |
Has the plugin a configure class? | |
static | getConfigureClassName ($a_name) |
Get plugin configure class name. | |
static | getDBUpdateScriptName ($a_ctype, $a_cname, $a_slot_name, $a_pname) |
Get DB update script filename (full path) | |
static | lookupTxt ($a_mod_prefix, $a_pl_id, $a_lang_var) |
Lookup language text. | |
static | _getImagePath ($a_ctype, $a_cname, $a_slot_id, $a_pname, $a_img) |
Get image path. | |
static | createPluginRecord ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Create plugin record, if not existing. | |
static | getPluginRecord ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get record from il_plugin table. | |
static | getPluginObject ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Get plugin object. | |
static | lookupStoredData ($a_ctype, $a_cname, $a_slot_id, $a_pname) |
Lookup information data in il_plugin. | |
static | getActivePluginsForSlot ($a_ctype, $a_cname, $a_slot_id) |
Get all active plugins for a slot. |
Protected Member Functions | |
slotInit () | |
Object initialization done by slot. | |
Protected Member Functions inherited from ilPlugin | |
setSlotObject ($a_slot) | |
Set Plugin Slot. | |
getSlotObject () | |
Get Plugin Slot. | |
getClassesDirectory () | |
Get Plugin's classes Directory. | |
getLanguageDirectory () | |
Get Plugin's language Directory. | |
init () | |
Object initialization. | |
beforeActivation () | |
Before activation processing. | |
afterActivation () | |
After activation processing. | |
afterDeactivation () | |
After deactivation processing. | |
beforeUpdate () | |
Before update processing. | |
afterUpdate () | |
After update processing. |
Static Protected Member Functions | |
static | isValidObjType ($a_obj_type, $a_is_substitution=false) |
Validate object type. | |
static | saveRecordObjTypes ($a_record_id, array $a_obj_types) |
Save object type assignments for record. | |
static | getDBFieldLastPosition ($a_record_id) |
Get last position of record. | |
static | getDBSubstitution ($a_obj_type, $a_include_field_data=false) |
Get substitution DB data for object type. |
Additional Inherited Members | |
Protected Attributes inherited from ilPlugin | |
$lang_initialised = false |
Abstract parent class for all advanced md claiming plugin classes.
Definition at line 15 of file class.ilAdvancedMDClaimingPlugin.php.
|
abstract |
Check permission.
int | $a_user_id | |
int | $a_context_type | |
int | $a_context_id | |
int | $a_action_id | |
int | $a_action_sub_id |
|
static |
Create field db entry.
int | $a_record_id | |
int | $a_type | |
string | $a_title | |
string | $a_description | |
bool | $a_searchable | |
array | $a_definition |
Definition at line 273 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB, and getDBFieldLastPosition().
|
static |
Create record db entry.
string | $a_title | |
string | $a_description | |
bool | $a_active | |
array | $a_obj_types |
Definition at line 92 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB, and saveRecordObjTypes().
|
static |
Delete field db entry.
int | $a_field_id |
Definition at line 352 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB.
|
static |
Delete record db entry.
int | $a_record_id |
Definition at line 208 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB.
|
final |
Get Component Name.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented from ilPlugin.
Definition at line 26 of file class.ilAdvancedMDClaimingPlugin.php.
|
final |
Get Component Type.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented from ilPlugin.
Definition at line 21 of file class.ilAdvancedMDClaimingPlugin.php.
References IL_COMP_SERVICE.
|
staticprotected |
Get last position of record.
int | $a_record_id |
Definition at line 245 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB.
Referenced by createDBField().
|
staticprotected |
Get substitution DB data for object type.
string | $a_obj_type | |
bool | $a_include_field_data |
Definition at line 373 of file class.ilAdvancedMDClaimingPlugin.php.
Referenced by hasDBFieldSubstitution(), removeDBFieldSubstitution(), setDBFieldSubstitution(), and setDBSubstitution().
|
final |
Get Slot Name.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented from ilPlugin.
Definition at line 31 of file class.ilAdvancedMDClaimingPlugin.php.
|
final |
Get Slot ID.
Must be overwritten in plugin class of plugin slot. (and should be made final)
Reimplemented from ilPlugin.
Definition at line 36 of file class.ilAdvancedMDClaimingPlugin.php.
|
static |
Check if field has db entry.
int | $a_field_id |
Definition at line 228 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB.
|
static |
Is substitution active for field in object type.
string | $a_obj_type | |
int | $a_field_id |
Definition at line 447 of file class.ilAdvancedMDClaimingPlugin.php.
References getDBSubstitution().
|
static |
Check if record has db entry.
int | $a_record_id |
Definition at line 74 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB.
|
staticprotected |
Validate object type.
string | $a_obj_type | |
bool | $a_is_substitution |
Definition at line 119 of file class.ilAdvancedMDClaimingPlugin.php.
References $valid.
|
static |
Remove field substitution entry in DB.
string | $a_obj_type | |
int | $a_field_id |
Definition at line 524 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB, and getDBSubstitution().
|
staticprotected |
Save object type assignments for record.
int | $a_record_id | |
array | $a_obj_types |
Definition at line 138 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB.
Referenced by createDBRecord(), and updateDBRecord().
|
static |
Update field substitution entry in DB.
string | $a_obj_type | |
int | $a_field_id | |
bool | $a_bold | |
bool | $a_newline |
Definition at line 473 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB, getDBSubstitution(), and setDBSubstitution().
|
static |
Set substitution DB entry (for object type)
string | $a_obj_type | |
bool | $a_show_description | |
bool | $a_show_field_names |
Definition at line 407 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB, and getDBSubstitution().
Referenced by setDBFieldSubstitution().
|
finalprotected |
Object initialization done by slot.
Must be overwritten in plugin class of plugin slot.
(and should be made protected final)
Reimplemented from ilPlugin.
Definition at line 41 of file class.ilAdvancedMDClaimingPlugin.php.
|
static |
Update field db entry.
int | $a_field_id | |
string | $a_title | |
string | $a_description | |
bool | $a_searchable | |
array | $a_definition |
Definition at line 322 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB.
|
static |
Update record db entry.
int | $a_record_id | |
string | $a_title | |
string | $a_description | |
bool | $a_active | |
array | $a_obj_types |
Definition at line 177 of file class.ilAdvancedMDClaimingPlugin.php.
References $ilDB, and saveRecordObjTypes().