32 include_once
'class.ilMDBase.php';
47 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEntity.php';
53 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEntity.php';
60 $ent->setMetaId($a_entity_id);
66 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEntity.php';
70 $ent->setParentType(
'meta_contribute');
86 case 'GraphicalDesigner':
87 case 'TechnicalImplementer':
88 case 'ContentProvider':
89 case 'TechnicalValidator':
90 case 'EducationalValidator':
92 case 'InstructionalDesigner':
93 case 'SubjectMatterExpert':
96 $this->role = $a_role;
109 $this->date = $a_date;
119 if($this->db->autoExecute(
'il_meta_contribute',
120 $this->__getFields(),
121 DB_AUTOQUERY_INSERT))
123 $this->
setMetaId($this->db->getLastInsertId());
136 if($this->db->autoExecute(
'il_meta_contribute',
137 $this->__getFields(),
139 "meta_contribute_id = ".$ilDB->quote($this->
getMetaId())))
153 $query =
"DELETE FROM il_meta_contribute ".
154 "WHERE meta_contribute_id = ".$ilDB->quote($this->
getMetaId());
171 return array(
'rbac_id' => $this->
getRBACId(),
184 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
188 $query =
"SELECT * FROM il_meta_contribute ".
189 "WHERE meta_contribute_id = ".$ilDB->quote($this->
getMetaId());
213 $writer->xmlStartTag(
'Contribute',array(
'Role' => $this->
getRole()));
219 $ent->toXML($writer);
221 $writer->xmlElement(
'Date',null,$this->
getDate());
222 $writer->xmlEndTag(
'Contribute');
227 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
231 $query =
"SELECT meta_contribute_id FROM il_meta_contribute ".
232 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
233 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
234 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
235 "AND parent_type = ".$ilDB->quote($a_parent_type);
240 $ids[] =
$row->meta_contribute_id;
242 return $ids ? $ids : array();