Public Member Functions | |
discuss_userPosts ($username) | |
rotate ($postdata) | |
postDeleted ($globalID) | |
postcount () | |
save () | |
Public Attributes | |
$posts | |
Private Attributes | |
$filename |
Definition at line 6 of file discuss_userPosts.php.
discuss_userPosts::discuss_userPosts | ( | $ | username | ) |
The constructor
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
postdata | An array containing post data to be added |
Definition at line 38 of file discuss_userPosts.php.
References postDeleted(), and save().
discuss_userPosts::postDeleted | ( | $ | globalID | ) |
Deletes a post with a globalID from the list
globalID | The globalID of the post to remove |
Definition at line 67 of file discuss_userPosts.php.
References save().
Referenced by rotate().
discuss_userPosts::postcount | ( | ) |
Returns the user's post count
Definition at line 79 of file discuss_userPosts.php.
discuss_userPosts::save | ( | ) |
Saves the data back to disc
Definition at line 89 of file discuss_userPosts.php.
References array_export().
Referenced by postDeleted(), and rotate().
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.