32include_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';
52 $ent->setMetaId($a_entity_id);
58 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDEntity.php';
62 $ent->setParentType(
'meta_contribute');
78 case 'GraphicalDesigner':
79 case 'TechnicalImplementer':
80 case 'ContentProvider':
81 case 'TechnicalValidator':
82 case 'EducationalValidator':
84 case 'InstructionalDesigner':
85 case 'SubjectMatterExpert':
88 $this->role = $a_role;
101 $this->
date = $a_date;
111 if($this->db->autoExecute(
'il_meta_contribute',
112 $this->__getFields(),
115 $this->
setMetaId($this->db->getLastInsertId());
128 if($this->db->autoExecute(
'il_meta_contribute',
129 $this->__getFields(),
131 "meta_contribute_id = ".$ilDB->quote($this->getMetaId())))
145 $query =
"DELETE FROM il_meta_contribute ".
146 "WHERE meta_contribute_id = ".$ilDB->quote($this->
getMetaId());
163 return array(
'rbac_id' => $this->
getRBACId(),
176 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
180 $query =
"SELECT * FROM il_meta_contribute ".
181 "WHERE meta_contribute_id = ".$ilDB->quote($this->
getMetaId());
205 $writer->xmlStartTag(
'Contribute',array(
'Role' => $this->
getRole()));
211 $ent->toXML($writer);
213 $writer->xmlElement(
'Date',
null,$this->
getDate());
214 $writer->xmlEndTag(
'Contribute');
219 function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
223 $query =
"SELECT meta_contribute_id FROM il_meta_contribute ".
224 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
225 "AND obj_id = ".$ilDB->quote($a_obj_id).
" ".
226 "AND parent_id = ".$ilDB->quote($a_parent_id).
" ".
227 "AND parent_type = ".$ilDB->quote($a_parent_type);
232 $ids[] =
$row->meta_contribute_id;
234 return $ids ? $ids : array();
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
An exception for terminatinating execution or to throw for unit testing.
const MDB2_AUTOQUERY_INSERT
const MDB2_AUTOQUERY_UPDATE
setMetaId($a_meta_id, $a_read_data=true)
setParentType($a_parent_type)
_getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
& getEntity($a_entity_id)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
static prepareDBString($a_str)
prepare a string for db writing (insert/update)
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled