ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
ilMDKeyword ($a_rbac_id=0, $a_obj_id=0, $a_obj_type= '') | |
setKeyword ($a_keyword) | |
getKeyword () | |
setKeywordLanguage (&$lng_obj) | |
& | getKeywordLanguage () |
getKeywordLanguageCode () | |
save () | |
update () | |
delete () | |
__getFields () | |
read () | |
toXML (&$writer) | |
_getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type) | |
ilMDKeyword ($a_rbac_id=0, $a_obj_id=0, $a_obj_type= '') | |
setKeyword ($a_keyword) | |
getKeyword () | |
setKeywordLanguage (&$lng_obj) | |
& | getKeywordLanguage () |
getKeywordLanguageCode () | |
save () | |
update () | |
delete () | |
__getFields () | |
read () | |
toXML (&$writer) | |
_getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type) | |
Public Member Functions inherited from ilMDBase | |
ilMDBase ($a_rbac_id=0, $a_obj_id=0, $a_type=0) | |
setRBACId ($a_id) | |
getRBACId () | |
setObjId ($a_id) | |
getObjId () | |
setObjType ($a_type) | |
getObjType () | |
setMetaId ($a_meta_id, $a_read_data=true) | |
getMetaId () | |
setParentType ($a_parent_type) | |
getParentType () | |
setParentId ($a_id) | |
getParentId () | |
setExportMode ($a_export_mode=true) | |
getExportMode () | |
validate () | |
ilMDBase ($a_rbac_id=0, $a_obj_id=0, $a_type=0) | |
setRBACId ($a_id) | |
getRBACId () | |
setObjId ($a_id) | |
getObjId () | |
setObjType ($a_type) | |
getObjType () | |
setMetaId ($a_meta_id, $a_read_data=true) | |
getMetaId () | |
setParentType ($a_parent_type) | |
getParentType () | |
setParentId ($a_id) | |
getParentId () | |
validate () |
Static Public Member Functions | |
static | _getKeywordsByLanguage ($a_rbac_id, $a_obj_id, $a_type) |
Get keywords by language. | |
static | _getKeywordsByLanguageAsString ($a_rbac_id, $a_obj_id, $a_type) |
Get keywords by language as string. | |
static | _searchKeywords ($a_query, $a_type, $a_rbac_id=0) |
Search for objects by keywords. | |
static | _getMatchingKeywords ($a_query, $a_type, $a_rbac_id=0) |
Search for keywords. | |
static | lookupKeywords ($a_rbac_id, $a_obj_id, $a_return_ids=false) |
Lookup Keywords. | |
static | updateKeywords (ilMDGeneral $a_md_section, array $a_keywords) |
Update keywords from input array. |
Additional Inherited Members | |
Data Fields inherited from ilMDBase | |
$rbac_id | |
$obj_id | |
$obj_type | |
$export_mode = false |
Definition at line 33 of file class.ilMDKeyword.php.
ilMDKeyword::__getFields | ( | ) |
Definition at line 114 of file class.ilMDKeyword.php.
References getKeyword(), getKeywordLanguageCode(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getParentId(), ilMDBase\getParentType(), and ilMDBase\getRBACId().
Referenced by save().
ilMDKeyword::__getFields | ( | ) |
Definition at line 114 of file class.ilMDKeyword.php.
References getKeyword(), getKeywordLanguageCode(), ilMDBase\getObjId(), ilMDBase\getObjType(), ilMDBase\getParentId(), ilMDBase\getParentType(), ilMDBase\getRBACId(), and ilUtil\prepareDBString().
ilMDKeyword::_getIds | ( | $a_rbac_id, | |
$a_obj_id, | |||
$a_parent_id, | |||
$a_parent_type | |||
) |
Definition at line 163 of file class.ilMDKeyword.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
ilMDKeyword::_getIds | ( | $a_rbac_id, | |
$a_obj_id, | |||
$a_parent_id, | |||
$a_parent_type | |||
) |
Definition at line 166 of file class.ilMDKeyword.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilMDGeneral\getKeywordIds().
|
static |
Get keywords by language.
public
int | rbac_id |
int | obj_id |
string | obj type |
Definition at line 195 of file class.ilMDKeyword.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by _getKeywordsByLanguageAsString().
|
static |
Get keywords by language as string.
public
int | rbac_id |
int | obj_id |
string | obj type |
Definition at line 224 of file class.ilMDKeyword.php.
References _getKeywordsByLanguage().
Referenced by ilMDUtils\_fillHTMLMetaTags().
|
static |
Search for keywords.
string | $a_query | |
string | $a_type | |
int | $a_rbac_id | [optional] |
Definition at line 286 of file class.ilMDKeyword.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilMDEditorGUI\keywordAutocomplete(), and ilBlogPostingGUI\keywordAutocomplete().
|
static |
Search for objects by keywords.
string | $a_query | |
string | $a_type | |
int | $a_rbac_id | [optional] |
Definition at line 240 of file class.ilMDKeyword.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjMediaPool\getMediaObjects().
ilMDKeyword::delete | ( | ) |
Reimplemented from ilMDBase.
Definition at line 97 of file class.ilMDKeyword.php.
References $query, and ilMDBase\getMetaId().
ilMDKeyword::delete | ( | ) |
Reimplemented from ilMDBase.
Definition at line 98 of file class.ilMDKeyword.php.
References $query, $res, and ilMDBase\getMetaId().
ilMDKeyword::getKeyword | ( | ) |
Definition at line 47 of file class.ilMDKeyword.php.
Referenced by __getFields(), and toXML().
ilMDKeyword::getKeyword | ( | ) |
Definition at line 47 of file class.ilMDKeyword.php.
& ilMDKeyword::getKeywordLanguage | ( | ) |
Definition at line 58 of file class.ilMDKeyword.php.
& ilMDKeyword::getKeywordLanguage | ( | ) |
Definition at line 58 of file class.ilMDKeyword.php.
ilMDKeyword::getKeywordLanguageCode | ( | ) |
Definition at line 62 of file class.ilMDKeyword.php.
ilMDKeyword::getKeywordLanguageCode | ( | ) |
Definition at line 62 of file class.ilMDKeyword.php.
Referenced by __getFields(), and toXML().
ilMDKeyword::ilMDKeyword | ( | $a_rbac_id = 0 , |
|
$a_obj_id = 0 , |
|||
$a_obj_type = '' |
|||
) |
Definition at line 35 of file class.ilMDKeyword.php.
References ilMDBase\ilMDBase().
ilMDKeyword::ilMDKeyword | ( | $a_rbac_id = 0 , |
|
$a_obj_id = 0 , |
|||
$a_obj_type = '' |
|||
) |
Definition at line 35 of file class.ilMDKeyword.php.
References ilMDBase\ilMDBase().
|
static |
Lookup Keywords.
object | $a_rbac_id | |
object | $a_obj_id | |
bool | $a_return_kw |
Definition at line 314 of file class.ilMDKeyword.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilMediaPoolTableGUI\fillRow(), and ilBlogPostingGUI\getKeywords().
ilMDKeyword::read | ( | ) |
Definition at line 125 of file class.ilMDKeyword.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, ilMDBase\getMetaId(), setKeyword(), setKeywordLanguage(), ilMDBase\setObjId(), ilMDBase\setObjType(), ilMDBase\setParentId(), ilMDBase\setParentType(), and ilMDBase\setRBACId().
ilMDKeyword::read | ( | ) |
Definition at line 125 of file class.ilMDKeyword.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, ilMDBase\getMetaId(), setKeyword(), setKeywordLanguage(), ilMDBase\setObjId(), ilMDBase\setObjType(), ilMDBase\setParentId(), ilMDBase\setParentType(), ilMDBase\setRBACId(), and ilUtil\stripSlashes().
ilMDKeyword::save | ( | ) |
Reimplemented from ilMDBase.
Definition at line 67 of file class.ilMDKeyword.php.
References ilMDBase\getMetaId(), and ilMDBase\setMetaId().
ilMDKeyword::save | ( | ) |
Reimplemented from ilMDBase.
Definition at line 67 of file class.ilMDKeyword.php.
References __getFields(), ilMDBase\getMetaId(), and ilMDBase\setMetaId().
ilMDKeyword::setKeyword | ( | $a_keyword | ) |
Definition at line 43 of file class.ilMDKeyword.php.
Referenced by read().
ilMDKeyword::setKeyword | ( | $a_keyword | ) |
Definition at line 43 of file class.ilMDKeyword.php.
ilMDKeyword::setKeywordLanguage | ( | & | $lng_obj | ) |
Definition at line 51 of file class.ilMDKeyword.php.
Referenced by read().
ilMDKeyword::setKeywordLanguage | ( | & | $lng_obj | ) |
Definition at line 51 of file class.ilMDKeyword.php.
ilMDKeyword::toXML | ( | & | $writer | ) |
Reimplemented from ilMDBase.
Definition at line 156 of file class.ilMDKeyword.php.
References getKeyword(), and getKeywordLanguageCode().
ilMDKeyword::toXML | ( | & | $writer | ) |
Reimplemented from ilMDBase.
Definition at line 156 of file class.ilMDKeyword.php.
References getKeyword(), and getKeywordLanguageCode().
ilMDKeyword::update | ( | ) |
Reimplemented from ilMDBase.
Definition at line 80 of file class.ilMDKeyword.php.
References ilMDBase\getMetaId().
ilMDKeyword::update | ( | ) |
Reimplemented from ilMDBase.
Definition at line 82 of file class.ilMDKeyword.php.
References ilMDBase\getMetaId().
|
static |
Update keywords from input array.
ilMDGeneral | $a_md_section | |
array | $a_keywords | lang => keywords |
Definition at line 344 of file class.ilMDKeyword.php.
References $lang, ilMDGeneral\addKeyword(), ilMDGeneral\getKeyword(), ilMDGeneral\getKeywordIds(), and ilUtil\stripSlashes().
Referenced by ilBlogPostingGUI\saveKeywordsForm(), and ilMDEditorGUI\updateQuickEdit().