ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct () | |
Constructor. 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 | 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... | |
Protected Attributes | |
$db | |
ilTagging::__construct | ( | ) |
|
static |
Count all tags for repository objects.
array | $a_obj_ids | repository object IDs array |
bool | $a_all_users |
Definition at line 404 of file class.ilTagging.php.
References $DIC, $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 484 of file class.ilTagging.php.
References $DIC, $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 518 of file class.ilTagging.php.
References $DIC, $ilDB, $ilUser, $res, $row, $tag, 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 435 of file class.ilTagging.php.
References $DIC, $ilDB, $res, $row, $tag, 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 249 of file class.ilTagging.php.
References $m.
|
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 354 of file class.ilTagging.php.
References $DIC, $ilDB, and array.
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 322 of file class.ilTagging.php.
References $DIC, $ilDB, and array.
Referenced by getObjectsForTagAndUser(), and ilTaggingAppEventListener\handleEvent().
|
static |
Get objects for tag and user.
int | $a_user_id | User ID |
Definition at line 206 of file class.ilTagging.php.
References $DIC, $ilDB, ilObject\_exists(), array, and deleteTagsOfObject().
Referenced by ilPDTaggingBlockGUI\removeTagsWithoutAccess(), and ilPDTaggingBlockGUI\showResourcesForTag().
|
static |
Get style class for tag relevance.
Definition at line 262 of file class.ilTagging.php.
References $m.
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 135 of file class.ilTagging.php.
References $DIC, $ilDB, $tags, and array.
Referenced by ilTaggingGUI\getAllUserTagsForObjectHTML().
|
static |
Get tags for a user.
int | $a_user_id | User ID |
Definition at line 175 of file class.ilTagging.php.
References $DIC, $ilDB, $tags, 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 96 of file class.ilTagging.php.
References $DIC, $ilDB, $tags, and array.
Referenced by ilObjectListGUI\getHeaderAction(), ilTaggingGUI\getHTML(), and ilTaggingGUI\getTaggingInputHTML().
|
static |
Get users for tag.
Definition at line 381 of file class.ilTagging.php.
References $DIC, $ilDB, $users, 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 287 of file class.ilTagging.php.
References $DIC, $ilDB, and array.
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 43 of file class.ilTagging.php.
References $DIC, $ilDB, $tag, and array.
Referenced by ilTaggingGUI\saveInput(), and ilTaggingGUI\saveJS().
|
protected |
Definition at line 20 of file class.ilTagging.php.