32 include_once
'class.ilMDBase.php';
39 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEntity.php';
45 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEntity.php';
51 $ent->setMetaId($a_entity_id);
57 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEntity.php';
61 $ent->setParentType(
'meta_contribute');
76 case 'GraphicalDesigner':
77 case 'TechnicalImplementer':
78 case 'ContentProvider':
79 case 'TechnicalValidator':
80 case 'EducationalValidator':
82 case 'InstructionalDesigner':
83 case 'SubjectMatterExpert':
86 $this->role = $a_role;
99 $this->date = $a_date;
109 if ($this->db->autoExecute(
110 'il_meta_contribute',
111 $this->__getFields(),
114 $this->
setMetaId($this->db->getLastInsertId());
126 if ($this->db->autoExecute(
127 'il_meta_contribute',
128 $this->__getFields(),
130 "meta_contribute_id = " . $ilDB->quote($this->
getMetaId())
138 public function delete()
143 $query =
"DELETE FROM il_meta_contribute " .
144 "WHERE meta_contribute_id = " . $ilDB->quote($this->
getMetaId());
160 return array(
'rbac_id' => $this->
getRBACId(),
173 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
176 $query =
"SELECT * FROM il_meta_contribute " .
177 "WHERE meta_contribute_id = " . $ilDB->quote($this->
getMetaId());
200 $writer->xmlStartTag(
'Contribute', array(
'Role' => $this->
getRole()));
205 $ent->toXML($writer);
207 $writer->xmlElement(
'Date', null, $this->
getDate());
208 $writer->xmlEndTag(
'Contribute');
213 public function _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
217 $query =
"SELECT meta_contribute_id FROM il_meta_contribute " .
218 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
219 "AND obj_id = " . $ilDB->quote($a_obj_id) .
" " .
220 "AND parent_id = " . $ilDB->quote($a_parent_id) .
" " .
221 "AND parent_type = " . $ilDB->quote($a_parent_type);
225 $ids[] =
$row->meta_contribute_id;
227 return $ids ? $ids : array();
& getEntity($a_entity_id)
if(!array_key_exists('StateId', $_REQUEST)) $id
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
setParentType($a_parent_type)