
Public Member Functions | |
| array_distinct ($array, $group_keys, $sum_keys=NULL, $count_key=NULL) | |
| expunge ($tag_id) | |
| expungeContentFromTagMap () | |
| expungeMyContentFromTagMap () | |
| expungeTags ($pContentId, $pTagIdArray) | |
| getContentList (&$pParamHash) | |
| getList (&$pParamHash) | |
| getPopCount ($tag_id) | |
| isValid () | |
| LibertyTag ($pContentId=NULL) | |
| load () | |
| loadTag (&$pParamHash) | |
| sanitizeTag ($pTag) | |
| store (&$pParamHash) | |
| storeOneTag (&$pParamHash) | |
| storeTags (&$pParamHash) | |
| verify (&$pParamHash) | |
| verifyTag (&$pParamHash) | |
| verifyTagsMap (&$pParamHash) | |
Public Attributes | |
| $mContentId | |
Definition at line 19 of file LibertyTag.php.
| LibertyTag::array_distinct | ( | $ | array, | |
| $ | group_keys, | |||
| $ | sum_keys = NULL, |
|||
| $ | count_key = NULL | |||
| ) |
Used by getContentList to strip out duplicate records in a list Lifted from http://us3.php.net/manual/en/function.array-unique.php#57006
| $array | - nothing to say | |
| $group_keys | - columns which have to be grouped - can be STRING or ARRAY (STRING, STRING[, ...]) | |
| $sum_keys | - columns which have to be summed - can be STRING or ARRAY (STRING, STRING[, ...]) | |
| $count_key | - must be STRING - count the grouped keys |
Definition at line 548 of file LibertyTag.php.
References $array, and $output.
Referenced by getContentList().
| LibertyTag::expunge | ( | $ | tag_id | ) |
| LibertyTag::expungeContentFromTagMap | ( | ) |
This function removes all references to contentid from tags_content_map
Definition at line 327 of file LibertyTag.php.
References $query, $result, $ret, FALSE, isValid(), mContentId, and mDb.
Here is the call graph for this function:

| LibertyTag::expungeMyContentFromTagMap | ( | ) |
| LibertyTag::expungeTags | ( | $ | pContentId, | |
| $ | pTagIdArray | |||
| ) |
The function removes one or more tag from a piece of content
Definition at line 356 of file LibertyTag.php.
References $query, $result, mDb, and BitBase::verifyId().
Here is the call graph for this function:

| LibertyTag::getContentList | ( | &$ | pParamHash | ) |
This function gets all content by matching to any tag passed in a group of tags, eliminates dupe records
Definition at line 524 of file LibertyTag.php.
References $_REQUEST, $contentList, $gBitSmarty, $gBitSystem, $pParamHash, and array_distinct().
Here is the call graph for this function:

| LibertyTag::getList | ( | &$ | pParamHash | ) |
This function gets a list of tags
this all needs to go in in some other getList type method and these are just sketches - need to be different kinds of queries in most cases
Definition at line 370 of file LibertyTag.php.
References $gBitSystem, $gBitUser, $pParamHash, $query, $res, $result, $ret, $row, $sort_mode, getPopCount(), and mDb.
Here is the call graph for this function:

| LibertyTag::getPopCount | ( | $ | tag_id | ) |
This function gets the number of times a tag is used aka Popularity Count
Definition at line 512 of file LibertyTag.php.
References mDb.
Referenced by getList().
| LibertyTag::isValid | ( | ) |
check if the mContentId is set and valid
Definition at line 299 of file LibertyTag.php.
References mContentId, and BitBase::verifyId().
Referenced by expungeContentFromTagMap(), expungeMyContentFromTagMap(), load(), and storeTags().
Here is the call graph for this function:

| LibertyTag::LibertyTag | ( | $ | pContentId = NULL |
) |
Definition at line 22 of file LibertyTag.php.
References LibertyBase::LibertyBase(), and mContentId.
Here is the call graph for this function:

| LibertyTag::load | ( | ) |
Load all the tags for a given ContentId
| pParamHash | be sure to pass by reference in case we need to make modifcations to the hash |
Definition at line 49 of file LibertyTag.php.
References $query, $res, $result, $ret, isValid(), mContentId, mDb, and mInfo.
Referenced by storeTags().
Here is the call graph for this function:

| LibertyTag::loadTag | ( | &$ | pParamHash | ) |
Definition at line 71 of file LibertyTag.php.
References $pParamHash, $query, $result, mDb, and mInfo.
Referenced by storeOneTag().
| LibertyTag::sanitizeTag | ( | $ | pTag | ) |
Definition at line 213 of file LibertyTag.php.
References $gBitSystem.
Referenced by verifyTagsMap().
| LibertyTag::store | ( | &$ | pParamHash | ) |
| array | pParams hash of values that will be used to store the page |
Definition at line 167 of file LibertyTag.php.
References $pParamHash, mDb, verify(), and verifyTag().
Referenced by storeTags().
Here is the call graph for this function:

| LibertyTag::storeOneTag | ( | &$ | pParamHash | ) |
Definition at line 193 of file LibertyTag.php.
References $pParamHash, loadTag(), mDb, and verify().
Here is the call graph for this function:

| LibertyTag::storeTags | ( | &$ | pParamHash | ) |
| array | pParams hash includes mix of tags that will be storeded and associated with a ContentId used by service |
Definition at line 282 of file LibertyTag.php.
References $gBitSystem, $pParamHash, $result, isValid(), load(), store(), and verifyTagsMap().
Here is the call graph for this function:

| LibertyTag::verify | ( | &$ | pParamHash | ) |
Make sure the data is safe to store
| array | pParams reference to hash of values that will be used to store the page, they will be modified where necessary |
Definition at line 99 of file LibertyTag.php.
References $gBitSystem, $gBitUser, $pParamHash, mUserId, and BitBase::verifyId().
Referenced by store(), and storeOneTag().
Here is the call graph for this function:

| LibertyTag::verifyTag | ( | &$ | pParamHash | ) |
Definition at line 133 of file LibertyTag.php.
References $pParamHash, $query, $result, $ret, FALSE, and mDb.
Referenced by store().
| LibertyTag::verifyTagsMap | ( | &$ | pParamHash | ) |
Definition at line 239 of file LibertyTag.php.
References $gBitSystem, $gBitUser, $pParamHash, mContentId, mUserId, and sanitizeTag().
Referenced by storeTags().
Here is the call graph for this function:

| LibertyTag::$mContentId |
Definition at line 20 of file LibertyTag.php.
1.5.2