LibertyTag Class Reference

Inheritance diagram for LibertyTag:

Inheritance graph
[legend]
List of all members.

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

Detailed Description

Definition at line 19 of file LibertyTag.php.


Member Function Documentation

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

Parameters:
$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  ) 

This function removes a tag entry

Definition at line 306 of file LibertyTag.php.

References $query, $result, $ret, FALSE, and mDb.

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 (  ) 

This function removes all references to contentid from tags_content_map

Definition at line 341 of file LibertyTag.php.

References $gBitUser, $query, $result, $ret, FALSE, isValid(), mContentId, mDb, and mUserId.

Here is the call graph for this function:

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

Parameters:
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  ) 

Parameters:
array pParams hash of values that will be used to store the page
Returns:
bool TRUE on success, FALSE if store could not occur. If FALSE, $this->mErrors will have reason why public

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  ) 

Parameters:
array pParams hash includes mix of tags that will be storeded and associated with a ContentId used by service
Returns:
bool TRUE on success, FALSE if store could not occur. If FALSE, $this->mErrors will have reason why public

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

Parameters:
array pParams reference to hash of values that will be used to store the page, they will be modified where necessary
Returns:
bool TRUE on success, FALSE if verify failed. If FALSE, $this->mErrors will have reason why private

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:


Member Data Documentation

LibertyTag::$mContentId

Definition at line 20 of file LibertyTag.php.


The documentation for this class was generated from the following file:
Generated on Wed Aug 22 19:34:46 2007 for bitweaver by  doxygen 1.5.2