32 include_once
'class.ilMDBase.php';
46 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
52 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
59 $con->setMetaId($a_contribute_id);
65 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
69 $con->setParentType(
'meta_lifecycle');
84 $this->status = $a_status;
96 $this->version = $a_version;
100 return $this->version;
104 if(is_object($lng_obj))
106 $this->version_language =& $lng_obj;
111 return $this->version_language;
115 if(is_object($this->version_language))
117 return $this->version_language->getLanguageCode();
124 if($this->db->autoExecute(
'il_meta_lifecycle',
125 $this->__getFields(),
126 DB_AUTOQUERY_INSERT))
128 $this->
setMetaId($this->db->getLastInsertId());
141 if($this->db->autoExecute(
'il_meta_lifecycle',
142 $this->__getFields(),
144 "meta_lifecycle_id = ".$ilDB->quote($this->
getMetaId())))
166 $query =
"DELETE FROM il_meta_lifecycle ".
167 "WHERE meta_lifecycle_id = ".$ilDB->quote($this->
getMetaId());
179 return array(
'rbac_id' => $this->
getRBACId(),
191 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
195 $query =
"SELECT * FROM il_meta_lifecycle ".
196 "WHERE meta_lifecycle_id = ".$ilDB->quote($this->
getMetaId());
219 $writer->xmlStartTag(
'Lifecycle',array(
'Status' => $this->
getStatus()));
226 $con->toXML($writer);
229 $writer->xmlEndTag(
'Lifecycle');
239 $query =
"SELECT meta_lifecycle_id FROM il_meta_lifecycle ".
240 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id).
" ".
241 "AND obj_id = ".$ilDB->quote($a_obj_id);
247 return $row->meta_lifecycle_id;