32 include_once
'class.ilMDBase.php';
38 $subs[
'Contribute'] =
'meta_contribute';
46 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
52 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
59 $con->setMetaId($a_contribute_id);
65 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
69 $con->setParentType(
'meta_lifecycle');
84 $this->status = $a_status;
96 $this->version = $a_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();
127 $fields[
'meta_lifecycle_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_lifecycle'));
129 if($this->db->insert(
'il_meta_lifecycle',$fields))
143 if($this->db->update(
'il_meta_lifecycle',
144 $this->__getFields(),
167 $query =
"DELETE FROM il_meta_lifecycle ".
168 "WHERE meta_lifecycle_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
190 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
194 $query =
"SELECT * FROM il_meta_lifecycle ".
195 "WHERE meta_lifecycle_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
218 $writer->xmlStartTag(
'Lifecycle',
array(
'Status' => $this->
getStatus()
228 foreach($contributes as $id)
231 $con->toXML($writer);
233 if(!count($contributes))
235 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
237 $con->toXML($writer);
239 $writer->xmlEndTag(
'Lifecycle');
245 static function _getId($a_rbac_id,$a_obj_id)
249 $query =
"SELECT meta_lifecycle_id FROM il_meta_lifecycle ".
250 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
251 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer');
257 return $row->meta_lifecycle_id;
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
static _getId($a_rbac_id, $a_obj_id)
& getContribute($a_contribute_id)
setMetaId($a_meta_id, $a_read_data=true)
Create styles array
The data for the language used.
setVersionLanguage($lng_obj)