32 include_once
'class.ilMDBase.php';
39 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
45 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
47 if (!$a_contribute_id) {
51 $con->setMetaId($a_contribute_id);
57 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDContribute.php';
61 $con->setParentType(
'meta_lifecycle');
75 $this->status = $a_status;
88 $this->version = $a_version;
96 if (is_object($lng_obj)) {
97 $this->version_language = &$lng_obj;
102 return $this->version_language;
106 if (is_object($this->version_language)) {
107 return $this->version_language->getLanguageCode();
114 if ($this->db->autoExecute(
116 $this->__getFields(),
119 $this->
setMetaId($this->db->getLastInsertId());
131 if ($this->db->autoExecute(
133 $this->__getFields(),
135 "meta_lifecycle_id = " . $ilDB->quote($this->
getMetaId())
143 public function delete()
155 $query =
"DELETE FROM il_meta_lifecycle " .
156 "WHERE meta_lifecycle_id = " . $ilDB->quote($this->
getMetaId());
168 return array(
'rbac_id' => $this->
getRBACId(),
180 include_once
'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
183 $query =
"SELECT * FROM il_meta_lifecycle " .
184 "WHERE meta_lifecycle_id = " . $ilDB->quote($this->
getMetaId());
206 $writer->xmlStartTag(
'Lifecycle', array(
'Status' => $this->
getStatus()));
212 $con->toXML($writer);
215 $writer->xmlEndTag(
'Lifecycle');
221 public function _getId($a_rbac_id, $a_obj_id)
225 $query =
"SELECT meta_lifecycle_id FROM il_meta_lifecycle " .
226 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id) .
" " .
227 "AND obj_id = " . $ilDB->quote($a_obj_id);
232 return $row->meta_lifecycle_id;
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
if(!array_key_exists('StateId', $_REQUEST)) $id
_getId($a_rbac_id, $a_obj_id)
& getContribute($a_contribute_id)
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)
setVersionLanguage($lng_obj)