31 include_once
'class.ilMDBase.php';
48 $query =
"SELECT language FROM il_meta_language ".
49 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
50 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
51 "AND obj_type = ".$ilDB->quote($a_obj_type ,
'text').
" ".
52 "AND parent_type = 'meta_general' ".
53 "ORDER BY meta_language_id ";
66 if(is_object($lng_obj))
77 return is_object($this->
language) ? $this->
language->getLanguageCode() :
false;
85 $fields[
'meta_language_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_language'));
87 if($this->db->insert(
'il_meta_language',$fields))
101 if($this->db->update(
'il_meta_language',
102 $this->__getFields(),
117 $query =
"DELETE FROM il_meta_language ".
118 "WHERE meta_language_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
141 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
145 $query =
"SELECT * FROM il_meta_language ".
146 "WHERE meta_language_id = ".$ilDB->quote($this->
getMetaId() ,
'integer');
177 static function _getIds($a_rbac_id,$a_obj_id,$a_parent_id,$a_parent_type)
181 $query =
"SELECT meta_language_id FROM il_meta_language ".
182 "WHERE rbac_id = ".$ilDB->quote($a_rbac_id ,
'integer').
" ".
183 "AND obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
184 "AND parent_id = ".$ilDB->quote($a_parent_id ,
'integer').
" ".
185 "AND parent_type = ".$ilDB->quote($a_parent_type ,
'text');
190 $ids[] =
$row->meta_language_id;
192 return $ids ? $ids :
array();
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
static _lookupFirstLanguage($a_rbac_id, $a_obj_id, $a_obj_type)
Lookup first language.
setMetaId($a_meta_id, $a_read_data=true)
Create styles array
The data for the language used.
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
setParentType($a_parent_type)