ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilMD5295Creator Class Reference
+ Collaboration diagram for ilMD5295Creator:

Public Member Functions

 __construct ($a_rbac_id, $a_obj_id, $a_type)
 
 setTitle ($a_title)
 
 getTitle ()
 
 setDescription ($a_desc)
 
 getDescription ()
 
 setTitleLanguage ($a_lng)
 
getTitleLanguage ()
 
 setDescriptionLanguage ($a_lng)
 
getDescriptionLanguage ()
 
 setLanguage ($a_lng)
 
getLanguage ()
 
 setKeyword ($a_key)
 
 getKeyword ()
 
 getRBACId ()
 
 getObjId ()
 
 getObjType ()
 
 setKeywordLanguage ($a_lng)
 
getKeywordLanguage ()
 
 setCatalog ($a_cat)
 
 getCatalog ()
 
 setEntry ($a_entry)
 
 getEntry ()
 
 setStructure ($a_structure)
 
 getStructure ()
 
 create ()
 
 __createGeneral ()
 

Data Fields

 $md_obj = null
 
 $rbac_id
 
 $obj_id
 
 $obj_type
 

Detailed Description

Definition at line 36 of file class.ilMD5295Creator.php.

Constructor & Destructor Documentation

◆ __construct()

ilMD5295Creator::__construct (   $a_rbac_id,
  $a_obj_id,
  $a_type 
)

Definition at line 55 of file class.ilMD5295Creator.php.

56 {
57 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMD5295.php';
58
59 if ($a_obj_id == 0) {
60 $a_obj_id = $a_rbac_id;
61 }
62
63 $this->rbac_id = $a_rbac_id;
64 $this->obj_id = $a_obj_id;
65 $this->obj_type = $a_type;
66
67 $this->md_obj = new ilMD5295($a_rbac_id, $a_obj_id, $a_type);
68 }
$a_type
Definition: workflow.php:92

References $a_type.

Member Function Documentation

◆ __createGeneral()

ilMD5295Creator::__createGeneral ( )

Definition at line 182 of file class.ilMD5295Creator.php.

183 {
184 $md_gen = &$this->md_obj->addGeneral();
185
186 $md_gen->setStructure($this->getStructure());
187 $md_gen->setTitle($this->getTitle());
188 $md_gen->setTitleLanguage($this->getTitleLanguage());
189 $md_gen->save();
190
191 $md_ide = &$md_gen->addIdentifier();
192 $md_ide->setCatalog($this->getCatalog());
193 $md_ide->setEntry($this->getEntry());
194 $md_ide->save();
195
196 $md_lng = &$md_gen->addLanguage();
197 $md_lng->setLanguage($this->getLanguage());
198 $md_lng->save();
199
200 $md_des = &$md_gen->addDescription();
201 $md_des->setDescription($this->getDescription());
202 $md_des->setDescriptionLanguage($this->getDescriptionLanguage());
203 $md_des->save();
204
205 $md_key = &$md_gen->addKeyword();
206 $md_key->setKeyword($this->getKeyword());
207 $md_key->setKeywordLanguage($this->getKeywordLanguage());
208 $md_key->save();
209
210 return true;
211 }

References getCatalog(), getDescription(), getDescriptionLanguage(), getEntry(), getKeyword(), getKeywordLanguage(), getLanguage(), getStructure(), getTitle(), and getTitleLanguage().

Referenced by create().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

ilMD5295Creator::create ( )

Definition at line 176 of file class.ilMD5295Creator.php.

177 {
178 $this->__createGeneral();
179 }

References __createGeneral().

+ Here is the call graph for this function:

◆ getCatalog()

ilMD5295Creator::getCatalog ( )

Definition at line 153 of file class.ilMD5295Creator.php.

154 {
155 return $this->catalog ? $this->catalog : 'ILIAS';
156 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ getDescription()

ilMD5295Creator::getDescription ( )

Definition at line 83 of file class.ilMD5295Creator.php.

84 {
85 return $this->description;
86 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ getDescriptionLanguage()

& ilMD5295Creator::getDescriptionLanguage ( )

Definition at line 101 of file class.ilMD5295Creator.php.

102 {
103 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMD5295LanguageItem.php';
104
105 return new ilMD5295LanguageItem($this->title_lng);
106 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ getEntry()

ilMD5295Creator::getEntry ( )

Definition at line 161 of file class.ilMD5295Creator.php.

162 {
163 return $this->entry ? $this->entry : 'il__' . $this->getObjType() . '_' . $this->getObjId();
164 }

References getObjId(), and getObjType().

Referenced by __createGeneral().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getKeyword()

ilMD5295Creator::getKeyword ( )

Definition at line 121 of file class.ilMD5295Creator.php.

122 {
123 return $this->keyword;
124 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ getKeywordLanguage()

& ilMD5295Creator::getKeywordLanguage ( )

Definition at line 143 of file class.ilMD5295Creator.php.

144 {
145 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMD5295LanguageItem.php';
146
147 return new ilMD5295LanguageItem($this->title_lng);
148 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ getLanguage()

& ilMD5295Creator::getLanguage ( )

Definition at line 111 of file class.ilMD5295Creator.php.

112 {
113 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMD5295LanguageItem.php';
114
115 return new ilMD5295LanguageItem($this->title_lng);
116 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ getObjId()

ilMD5295Creator::getObjId ( )

Definition at line 131 of file class.ilMD5295Creator.php.

132 {
133 return $this->obj_id;
134 }

References $obj_id.

Referenced by getEntry().

+ Here is the caller graph for this function:

◆ getObjType()

ilMD5295Creator::getObjType ( )

Definition at line 135 of file class.ilMD5295Creator.php.

136 {
137 return $this->obj_type;
138 }

References $obj_type.

Referenced by getEntry().

+ Here is the caller graph for this function:

◆ getRBACId()

ilMD5295Creator::getRBACId ( )

Definition at line 127 of file class.ilMD5295Creator.php.

128 {
129 return $this->rbac_id;
130 }

References $rbac_id.

◆ getStructure()

ilMD5295Creator::getStructure ( )

Definition at line 169 of file class.ilMD5295Creator.php.

170 {
171 return $this->structure ? $this->structure : 'Hierarchical';
172 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ getTitle()

ilMD5295Creator::getTitle ( )

Definition at line 75 of file class.ilMD5295Creator.php.

76 {
77 return $this->title;
78 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ getTitleLanguage()

& ilMD5295Creator::getTitleLanguage ( )

Definition at line 91 of file class.ilMD5295Creator.php.

92 {
93 include_once 'Services/Migration/DBUpdate_5295/classes/class.ilMD5295LanguageItem.php';
94
95 return new ilMD5295LanguageItem($this->title_lng);
96 }

Referenced by __createGeneral().

+ Here is the caller graph for this function:

◆ setCatalog()

ilMD5295Creator::setCatalog (   $a_cat)

Definition at line 149 of file class.ilMD5295Creator.php.

150 {
151 $this->catalog = $a_cat;
152 }

◆ setDescription()

ilMD5295Creator::setDescription (   $a_desc)

Definition at line 79 of file class.ilMD5295Creator.php.

80 {
81 $this->description = $a_desc;
82 }

◆ setDescriptionLanguage()

ilMD5295Creator::setDescriptionLanguage (   $a_lng)

Definition at line 97 of file class.ilMD5295Creator.php.

98 {
99 $this->title_lng = $a_lng;
100 }

◆ setEntry()

ilMD5295Creator::setEntry (   $a_entry)

Definition at line 157 of file class.ilMD5295Creator.php.

158 {
159 $this->entry = $a_entry;
160 }

◆ setKeyword()

ilMD5295Creator::setKeyword (   $a_key)

Definition at line 117 of file class.ilMD5295Creator.php.

118 {
119 $this->keyword = $a_key;
120 }

◆ setKeywordLanguage()

ilMD5295Creator::setKeywordLanguage (   $a_lng)

Definition at line 139 of file class.ilMD5295Creator.php.

140 {
141 $this->title_lng = $a_lng;
142 }

◆ setLanguage()

ilMD5295Creator::setLanguage (   $a_lng)

Definition at line 107 of file class.ilMD5295Creator.php.

108 {
109 $this->title_lng = $a_lng;
110 }

◆ setStructure()

ilMD5295Creator::setStructure (   $a_structure)

Definition at line 165 of file class.ilMD5295Creator.php.

166 {
167 $this->structure = $a_structure;
168 }

◆ setTitle()

ilMD5295Creator::setTitle (   $a_title)

Definition at line 71 of file class.ilMD5295Creator.php.

72 {
73 $this->title = $a_title;
74 }

◆ setTitleLanguage()

ilMD5295Creator::setTitleLanguage (   $a_lng)

Definition at line 87 of file class.ilMD5295Creator.php.

88 {
89 $this->title_lng = $a_lng;
90 }

Field Documentation

◆ $md_obj

ilMD5295Creator::$md_obj = null

Definition at line 38 of file class.ilMD5295Creator.php.

◆ $obj_id

ilMD5295Creator::$obj_id

Definition at line 48 of file class.ilMD5295Creator.php.

Referenced by getObjId().

◆ $obj_type

ilMD5295Creator::$obj_type

Definition at line 53 of file class.ilMD5295Creator.php.

Referenced by getObjType().

◆ $rbac_id

ilMD5295Creator::$rbac_id

Definition at line 43 of file class.ilMD5295Creator.php.

Referenced by getRBACId().


The documentation for this class was generated from the following file: