API docs     >     General     >     Comments

Comments->getComments

Description

getComments ( $filterArray, $filterLimit )
Gets all Comments of this Object

Parameters

$filterArray
array
Filter array
$filterLimit
string
Filter limit

Returns

array
Array of Comments
  1. Array(                                      array Array of n Comments
  2.     [0] => Array(
  3.         [ID] => 2                           int Id
  4.         [COMMENT] => 'test comment 2'       string Comment text
  5.         [PARENT] => 0                       int Parent Id
  6.         [APPROVED] => 1                     int 1 if approved, 0 if unapproved
  7.         [SPAM] => 0                         int 1 if marked as spam, 0 if not
  8.         [USERID] => 1                       int Id of the User who created the comment
  9.         [USERNAME] => 'Example Admin'       string Name of the User who created the comment
  10.         [USEREMAIL] => 'admin@example.com'  string Email of the User who created the comment
  11.         [ORDERPROD] => 9999                 int Order number
  12.         [CREATEDTS] => 1331214490           int Timestamp of the creation
  13.         [CHANGEDTS] => 1331214490           int Timestamp of the last change
  14.         [RMODERATE] => 1                    int 1 if User owns Permissions to moderate Comments of this Object, 0 if not
  15.         [RCOMMENT] => 1                     int 1 if User owns Permissions to add Comments to this Object, 0 if not
  16.     )
  17.     ...
  18. )