Difference between revisions of "Functions:pageForumPostsGet"
From Whirlwind eCommerce Wiki
(New page: == Description == Retrieves array of forum post data == Syntax == $postArray = eV::pageForumPostsGet([$userId][,$pageId,][$templateIdList,][$fieldList,][$orderBy]); == Paramaters == *$us...) |
(No difference)
|
Revision as of 15:40, 19 October 2008
Description
Retrieves array of forum post data
Syntax
$postArray = eV::pageForumPostsGet([$userId][,$pageId,][$templateIdList,][$fieldList,][$orderBy]);
Paramaters
- $userId INT OPTIONAL (either userId OR pageId MUST be passed)
- Entering a value into this field will filter all forum posts by this user. Use this field to get all forum posts on all pages by a specific user.
- $pageId INT OPTIONAL (either userId or pageId MUST be passed)
- Entering a value into this field will filter all forum posts by this page. Use this field to show all forum posts made to a particular page.
- $templateIdList STRING OPTIONAL
- comma delimited list of templateIds to filter post results by. This is used in conjunction with userId to show only posts made by the user to pages that belong to certain templates (I.e. show only posts to products via product templates)
Return Values
Return multi dimensional array where first dimension is the index associated with the specific post, the second dimension is an associative array of data for that post. Return array is as follows:
Array ( ['posts'] => Array ( [0] => Array ( [] => Array post_createDate post_modDate post_userId post_handle post_postHandle post_userHandle post_emailAddress post_postEmailAddress post_userEmailAddress post_firstName post_lastName post_emailAddress post_userImage post_copy page_title reply_copy reply_handle reply_emailAddress reply_firstName reply_lastName reply_userEmailAddress reply_userHandle reply_postHandle reply_userImage reply_postId reply_userId reply_title reply_createDate reply_modDate reply_postEmailAddress reply_postHandle ratingAverage ratingTotal ratingCount ratingCount1 ratingCount2 ratingCount3 ratingCount4 ratingCount5 agreeTotal agreeCount ) [1] ... )
Examples
- Simple Example
// get postings for current page $postArr = eV::pageForumPostsGet(NULL,$pageId,NULL,'