|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Collaboration diagram for ilTagging:Public Member Functions | |
| getUsersForTag ($a_tag) | |
| Get users for tag. More... | |
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 | _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 368 of file class.ilTagging.php.
References $ilDB, and $ilUser.
Referenced by ilObjectListGUI\preloadCommonProperties().
Here is the caller graph for this function:
|
static |
Find all objects with given tag.
| string | $a_tag | |
| int | $a_user_id |
Definition at line 454 of file class.ilTagging.php.
References $ilDB, $res, and $row.
Referenced by ilTaggingClassificationProvider\getFilteredObjects().
Here is the caller graph for this function:
|
static |
Get tags for given object ids.
| array | $a_obj_ids | |
| int | $a_user_id |
Definition at line 491 of file class.ilTagging.php.
References $ilDB, $ilUser, $res, and $row.
Referenced by ilTaggingGUI\getHTML(), and ilObjectListGUI\preloadCommonProperties().
Here is the caller graph for this function:
|
static |
Count tags for given object ids.
| array | $a_obj_ids | obj_id => type |
| int | $a_user_id | |
| int | $a_divide |
Definition at line 398 of file class.ilTagging.php.
References $ilDB, $res, and $row.
Referenced by ilTaggingClassificationProvider\getSubTreeTags().
Here is the caller graph for this function:
|
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.
References $ilDB.
Referenced by ilPDTaggingBlockGUI\removeTagsWithoutAccess().
Here is the caller graph for this function:
|
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.
References $ilDB.
Referenced by getObjectsForTagAndUser(), and ilTaggingAppEventListener\handleEvent().
Here is the caller graph for this function:
|
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(), and deleteTagsOfObject().
Referenced by ilPDTaggingBlockGUI\removeTagsWithoutAccess(), and ilPDTaggingBlockGUI\showResourcesForTag().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
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.
References $ilDB.
Referenced by ilTaggingGUI\getAllUserTagsForObjectHTML().
Here is the caller graph for this function:
|
static |
Get tags for a user.
| int | $a_user_id | User ID |
Definition at line 148 of file class.ilTagging.php.
References $ilDB, and ilUtil\sortArray().
Referenced by ilPDTaggingBlockGUI\fillDataSection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.
References $ilDB.
Referenced by ilObjectListGUI\getHeaderAction(), ilTaggingGUI\getHTML(), and ilTaggingGUI\getTaggingInputHTML().
Here is the caller graph for this function:| ilTagging::getUsersForTag | ( | $a_tag | ) |
Get users for tag.
Definition at line 346 of file class.ilTagging.php.
References $ilDB.
Referenced by ilUserForTagTableGUI\__construct().
Here is the caller graph for this function:
|
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.
References $ilDB.
Referenced by ilTaggingAppEventListener\handleEvent().
Here is the caller graph for this function:
|
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.
References $ilDB.
Referenced by ilTaggingGUI\saveInput(), and ilTaggingGUI\saveJS().
Here is the caller graph for this function: