Documentation

CForumPoints2Post::GetList

CDBResult
CForumPoints2Post::GetList(
 array arOrder = array("MIN_NUM_POSTS"=>"ASC"), 
 array arFilter = array()
);

The method GetList returns an optionally filtered and sorted selection from the lookup table describing relationship between the number of user messages and number of points per message.

Parameters

Parameter Description
arOrder Specifies the name of a parameter by which the sorting is to be performed. 

The following values are possible:
  • ID - the record ID;
  • MIN_NUM_POSTS - number of messages a user have to add to the forum to gain this number of points per message;
  • POINTS_PER_POST - number of points per message.
arFilter The filter is an associated array whose keys are the discount parameter names, and values are the conditions.

The following keys are possible:
  • ID - the record ID;
  • MIN_NUM_POSTS - number of messages a user have to add to the forum to gain this number of points per message;

Return Values

Returns an instance of CDBResult containing a set of associated arrays with the following keys.

Key Value
ID The record ID.
MIN_NUM_POSTS Number of messages a user have to add to the forum to gain this number of points per message.
POINTS_PER_POST Number of points per message. May be both integer and fractional; for example: 2 or 0.1.
© «Bitrix24», 2001-2024