ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Static Public Member Functions | |
static | writeTagsForUserAndObject ($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id, $a_tags) |
Write tags for a user and an object. More... | |
static | getTagsForUserAndObject ($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id) |
Get tags for a user and an object. More... | |
static | getTagsForObject ($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_only_online=true) |
Get tags for an object. More... | |
static | getTagsForUser ($a_user_id, $a_max=0, $a_only_online=true) |
Get tags for a user. More... | |
static | getObjectsForTagAndUser ($a_user_id, $a_tag) |
Get objects for tag and user. More... | |
static | calculateFontSize ($cnt, $max) |
Returns 100(%) for 1 and 150(%) for $max y = a + mx 100 = a + m (1) 150 = a + m * max (2) (1): a = 100 - m (3) (2): a = 150 - max*m (4) (3)&(4): m - 100 = max*m - 150 (5) (5) 50 = (max-1)*m => m = 50/(max -1) => a = 100 - 50/(max -1) More... | |
static | getRelevanceClass ($cnt, $max) |
Get style class for tag relevance. More... | |
static | setTagsOfObjectOffline ($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_offline=true) |
Set offline. More... | |
static | deleteTagsOfObject ($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type) |
Deletes tags of an object. More... | |
static | deleteTagOfObjectForUser ($a_user_id, $a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_tag) |
Deletes tag of an object. More... | |
static | getUsersForTag ($a_tag) |
Get users for tag. More... | |
static | _countTags ($a_obj_ids, $a_all_users=false) |
Count all tags for repository objects. More... | |
static | _getTagCloudForObjects (array $a_obj_ids, $a_user_id=null, $a_divide=false) |
Count tags for given object ids. More... | |
static | _findObjectsByTag ($a_tag, $a_user_id=null, $a_invert=false) |
Find all objects with given tag. More... | |
static | _getListTagsForObjects (array $a_obj_ids, $a_user_id=null) |
Get tags for given object ids. More... | |
|
static |
Count all tags for repository objects.
array | $a_obj_ids | repository object IDs array |
bool | $a_all_users |
Definition at line 369 of file class.ilTagging.php.
References $ilDB, $ilUser, and array.
Referenced by ilObjectListGUI\preloadCommonProperties().
|
static |
Find all objects with given tag.
string | $a_tag | |
int | $a_user_id |
Definition at line 455 of file class.ilTagging.php.
References $ilDB, $res, $row, and array.
Referenced by ilTaggingClassificationProvider\getFilteredObjects().
|
static |
Get tags for given object ids.
array | $a_obj_ids | |
int | $a_user_id |
Definition at line 492 of file class.ilTagging.php.
References $ilDB, $ilUser, $res, $row, and array.
Referenced by ilTaggingGUI\getHTML(), and ilObjectListGUI\preloadCommonProperties().
|
static |
Count tags for given object ids.
array | $a_obj_ids | obj_id => type |
int | $a_user_id | |
int | $a_divide |
Definition at line 399 of file class.ilTagging.php.
References $ilDB, $res, $row, and array.
Referenced by ilTaggingClassificationProvider\getSubTreeTags().
|
static |
Returns 100(%) for 1 and 150(%) for $max y = a + mx 100 = a + m (1) 150 = a + m * max (2) (1): a = 100 - m (3) (2): a = 150 - max*m (4) (3)&(4): m - 100 = max*m - 150 (5) (5) 50 = (max-1)*m => m = 50/(max -1) => a = 100 - 50/(max -1)
Definition at line 220 of file class.ilTagging.php.
|
static |
Deletes tag of an object.
int | $a_user_id | User Id |
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
string | $a_tag | Tag |
Definition at line 322 of file class.ilTagging.php.
Referenced by ilPDTaggingBlockGUI\removeTagsWithoutAccess().
|
static |
Deletes tags of an object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
Definition at line 293 of file class.ilTagging.php.
Referenced by getObjectsForTagAndUser(), and ilTaggingAppEventListener\handleEvent().
|
static |
Get objects for tag and user.
int | $a_user_id | User ID |
Definition at line 178 of file class.ilTagging.php.
References $ilDB, ilObject\_exists(), array, and deleteTagsOfObject().
Referenced by ilPDTaggingBlockGUI\removeTagsWithoutAccess(), and ilPDTaggingBlockGUI\showResourcesForTag().
|
static |
Get style class for tag relevance.
Definition at line 233 of file class.ilTagging.php.
Referenced by ilTaggingGUI\getAllUserTagsForObjectHTML(), ilPDTaggingBlockGUI\getTagCloud(), ilTaggingClassificationProvider\render(), and ilObjBlogGUI\renderNavigationByKeywords().
|
static |
Get tags for an object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
Definition at line 112 of file class.ilTagging.php.
Referenced by ilTaggingGUI\getAllUserTagsForObjectHTML().
|
static |
Get tags for a user.
int | $a_user_id | User ID |
Definition at line 148 of file class.ilTagging.php.
References $ilDB, array, and ilUtil\sortArray().
Referenced by ilPDTaggingBlockGUI\fillDataSection().
|
static |
Get tags for a user and an object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
int | $a_user_id | User ID |
Definition at line 77 of file class.ilTagging.php.
Referenced by ilObjectListGUI\getHeaderAction(), ilTaggingGUI\getHTML(), and ilTaggingGUI\getTaggingInputHTML().
|
static |
Get users for tag.
Definition at line 346 of file class.ilTagging.php.
References $DIC, $ilDB, and array.
Referenced by ilUserForTagTableGUI\__construct().
|
static |
Set offline.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
boolean | $a_offline | Offline (true/false, true means offline!) |
Definition at line 265 of file class.ilTagging.php.
Referenced by ilTaggingAppEventListener\handleEvent().
|
static |
Write tags for a user and an object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
int | $a_user_id | User ID |
array | $a_tags | Tags |
Definition at line 27 of file class.ilTagging.php.
Referenced by ilTaggingGUI\saveInput(), and ilTaggingGUI\saveJS().