BitSticky Class Reference

Inheritance diagram for BitSticky:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BitSticky ($pStickyId=NULL, $pContentId=NULL, $pNotatedContentId=NULL)
 expunge ()
 load ()
 store (&$pParamHash)
 verify (&$pParamHash)

Detailed Description

Definition at line 31 of file BitSticky.php.


Member Function Documentation

BitSticky::BitSticky ( pStickyId = NULL,
pContentId = NULL,
pNotatedContentId = NULL 
)

Definition at line 33 of file BitSticky.php.

References LibertyAttachable::LibertyAttachable(), mContentId, and LibertyContent::registerContentType().

Here is the call graph for this function:

BitSticky::expunge (  ) 

Delete stickies object and related content record

Reimplemented from LibertyContent.

Definition at line 160 of file BitSticky.php.

References $query, $result, $ret, LibertyContent::expunge(), FALSE, LibertyContent::isValid(), mContentId, and mDb.

Here is the call graph for this function:

BitSticky::load (  ) 

Load a sticky object identified by mStickyId, $this->mNotatedContentId or mContentId in that order

Populates the mInfo array with the following fields

sticky_id notated_content_id parsed

Returns:
integer count of number of fields in MInfo

Definition at line 60 of file BitSticky.php.

References $gBitUser, $query, $result, LibertyContent::load(), mContentId, mDb, mInfo, mUserId, LibertyContent::parseData(), and BitBase::verifyId().

Here is the call graph for this function:

BitSticky::store ( &$  pParamHash  ) 

Create a new stickies object or update an existing one

Parameters:
array Array of content data to be stored (see verify for details)
Returns:
integer Number of errors detected ( 0 if successful )

Reimplemented from LibertyContent.

Definition at line 131 of file BitSticky.php.

References $pParamHash, $result, mDb, LibertyContent::store(), verify(), and BitBase::verifyId().

Here is the call graph for this function:

BitSticky::verify ( &$  pParamHash  ) 

Verify the core class data required to update the liberty_content table entries

Parameters:
array Array of content data to be stored pParamHash Array (See LibertyContent::verify for details of the core fields - which appends a [content_store] array with all the values for liberty_content)
content_type_guid string Should contain 'tikisticky' notated_content_id integer content_id of the object to which the stickie isattached sticky_store - Array of values for entering in stickies sticky_id integer If existing then current sticky id otherwise populate from sequence content_id integer Content id of the note notated_content_id integer Content id of the object to which it is attached

Reimplemented from LibertyContent.

Definition at line 106 of file BitSticky.php.

References $gBitUser, $pParamHash, $query, mDb, mUserId, and BitBase::verifyId().

Referenced by store().

Here is the call graph for this function:


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