41     public static function _getImagePath(
string $a_ctype, 
string $a_cname, 
string $a_slot_id, 
string $a_pname, 
string $a_img): string
    46         if (is_int(strpos($img, 
"Customizing"))) {
    55         $d2 = $component->getId() . 
"_" . $a_slot_id . 
"_" . 
$plugin->getId();
    58         if (is_int(strpos($img, 
"Customizing"))) {
    64         return $d . 
"/templates/images/" . $a_img;
    69     public static function _getIcon(
string $a_type): string
    73         return self::_getImagePath(
    78             "icon_" . $a_type . 
".svg"    82     public static function _getName(
string $a_id): string
    98         $type = $this->
getId();
   100         if (strpos($type, 
"x") !== 0) {
   101             throw new ilPluginException(
"Object plugin type must start with an x. Current type is " . $type . 
".");
   106             "SELECT * FROM object_data " .
   107             " WHERE type = " . 
$ilDB->quote(
"typ", 
"text") .
   108             " AND title = " . 
$ilDB->quote($type, 
"text")
   110         if ($rec = 
$ilDB->fetchAssoc($set)) {
   111             $t_id = $rec[
"obj_id"];
   113             $t_id = 
$ilDB->nextId(
"object_data");
   114             $ilDB->manipulate(
"INSERT INTO object_data " .
   115                 "(obj_id, type, title, description, owner, create_date, last_update) VALUES (" .
   116                 $ilDB->quote($t_id, 
"integer") . 
"," .
   117                 $ilDB->quote(
"typ", 
"text") . 
"," .
   118                 $ilDB->quote($type, 
"text") . 
"," .
   120                 $ilDB->quote(-1, 
"integer") . 
"," .
   128         $ops = [1, 2, 3, 4, 6];
   132         foreach ($ops as $op) {
   135                 "SELECT * FROM rbac_ta " .
   136                 " WHERE typ_id = " . 
$ilDB->quote($t_id, 
"integer") .
   137                 " AND ops_id = " . 
$ilDB->quote($op, 
"integer")
   139             if (!
$ilDB->fetchAssoc($set)) {
   140                 $ilDB->manipulate(
"INSERT INTO rbac_ta " .
   141                     "(typ_id, ops_id) VALUES (" .
   142                     $ilDB->quote($t_id, 
"integer") . 
"," .
   143                     $ilDB->quote($op, 
"integer") .
   150             "SELECT * FROM rbac_operations " .
   151             " WHERE class = " . 
$ilDB->quote(
"create", 
"text") .
   152             " AND operation = " . 
$ilDB->quote(
"create_" . $type, 
"text")
   154         if ($rec = 
$ilDB->fetchAssoc($set)) {
   155             $create_ops_id = $rec[
"ops_id"];
   157             $create_ops_id = 
$ilDB->nextId(
"rbac_operations");
   158             $ilDB->manipulate(
"INSERT INTO rbac_operations " .
   159                 "(ops_id, operation, description, class) VALUES (" .
   160                 $ilDB->quote($create_ops_id, 
"integer") . 
"," .
   161                 $ilDB->quote(
"create_" . $type, 
"text") . 
"," .
   162                 $ilDB->quote(
"create " . $type, 
"text") . 
"," .
   163                 $ilDB->quote(
"create", 
"text") .
   169         foreach ($par_types as $par_type) {
   171                 "SELECT obj_id FROM object_data " .
   172                 " WHERE type = " . 
$ilDB->quote(
"typ", 
"text") .
   173                 " AND title = " . 
$ilDB->quote($par_type, 
"text")
   175             if (($rec = 
$ilDB->fetchAssoc($set)) && $rec[
"obj_id"] > 0) {
   177                     "SELECT * FROM rbac_ta " .
   178                     " WHERE typ_id = " . 
$ilDB->quote($rec[
"obj_id"], 
"integer") .
   179                     " AND ops_id = " . 
$ilDB->quote($create_ops_id, 
"integer")
   181                 if (!
$ilDB->fetchAssoc($set)) {
   182                     $ilDB->manipulate(
"INSERT INTO rbac_ta " .
   183                         "(typ_id, ops_id) VALUES (" .
   184                         $ilDB->quote($rec[
"obj_id"], 
"integer") . 
"," .
   185                         $ilDB->quote($create_ops_id, 
"integer") .
   207             $rep_util->deleteObjectType($this->
getId());
   222         $par_types = [
"root", 
"cat", 
"crs", 
"grp", 
"fold"];
   245         return $lh->getPrefix();
 
hasPluginId(string $id)
Check if a plugin exists. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _getName(string $a_id)
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
useOrguPermissions()
Decide if this repository plugin uses OrgUnit Permissions. 
 
static now()
Return current timestamp in Y-m-d H:i:s format. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getPluginByName(string $name)
Get a plugin by name. 
 
ilComponentRepositoryWrite $component_repository
 
static _getIcon(string $a_type)
 
allowCopy()
decides if this repository plugin can be copied 
 
getPluginById(string $id)
Get a plugin by id. 
 
static _getOperationIdByName(string $a_operation)
get operation id by name of operation 
 
getComponentByTypeAndName(string $type, string $name)
Get a component by type and name. 
 
static _getImagePath(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname, string $a_img)
Only very little classes seem to care about this: