discuss_userPosts Class Reference

List of all members.

Public Member Functions

 discuss_userPosts ($username)
 rotate ($postdata)
 postDeleted ($globalID)
 postcount ()
 save ()

Public Attributes

 $posts

Private Attributes

 $filename


Detailed Description

The discuss_userPosts class, used for keeping track of a user's posting (because we cannot query a database for the information, we need to keep track of it another way)

Definition at line 6 of file discuss_userPosts.php.


Member Function Documentation

discuss_userPosts::discuss_userPosts ( username  ) 

The constructor

Parameters:
username String containing the username to handle posts for

Definition at line 18 of file discuss_userPosts.php.

References $userinfo_folder.

discuss_userPosts::rotate ( postdata  ) 

Rotates a post to the front, or adds it if it is a new post

Parameters:
postdata An array containing post data to be added
Returns:
bool Wether the rotation was successful

Definition at line 38 of file discuss_userPosts.php.

References postDeleted(), and save().

Here is the call graph for this function:

discuss_userPosts::postDeleted ( globalID  ) 

Deletes a post with a globalID from the list

Parameters:
globalID The globalID of the post to remove
Returns:
bool Wether the deletion was successful

Definition at line 67 of file discuss_userPosts.php.

References save().

Referenced by rotate().

Here is the call graph for this function:

discuss_userPosts::postcount (  ) 

Returns the user's post count

Returns:
integer The number of posts the user has made

Definition at line 79 of file discuss_userPosts.php.

discuss_userPosts::save (  ) 

Saves the data back to disc

Returns:
bool Wether the data was successfully saved

Definition at line 89 of file discuss_userPosts.php.

References array_export().

Referenced by postDeleted(), and rotate().

Here is the call graph for this function:


Member Data Documentation

discuss_userPosts::$filename [private]

string Internal variable - the filename used for saving the information

Definition at line 9 of file discuss_userPosts.php.

discuss_userPosts::$posts

array Array containing the actual post data

Definition at line 11 of file discuss_userPosts.php.


The documentation for this class was generated from the following file:

Generated on Sun Oct 26 20:33:15 2008 for The Travelsized Content Management System by  doxygen 1.5.5