Category: Objects

myCRED_Account

The account object is an “umbrella” object of a given users myCRED related data. This includes their balance, history and data related to any add-ons that are enabled in your installation.

Continue Reading

myCRED_Badge

This object holds all relevant information about a specific myCRED badge, along with a set of methods to manipulate the badge along with assigning it to users.

Continue Reading

myCRED_Balance

The Balance object consists of the balance values for both the current and total balance along with the point type. A balance object only holds information about one particular point type.

Continue Reading

myCred_Chart

This object is used to generate the chart HTML canvas element and construct the required JavaScript data for Chart.js. Used by the Statistics add-on. While the method only returns an empty HTML canvas element, the actual chart JavaScript data is populated using the $mycred_charts global. The statistics add-on uses this global to render the actual data in the footer of your website.

Continue Reading

myCRED_Email

This object holds all settings and data relevant to a given email notice along with a set of methods to process or parse emails.

Continue Reading

myCRED_History

This object contains log related data for a given myCRED balance. It contains an array of data to help with certain history checks, such as checking if a user got a record of getting points for a certain object ID (e.g. post or page).

Continue Reading

myCRED_Point_Type

The rank object contains the rank post object, the set title, logo details, requirements and user count.

Continue Reading

myCRED_Rank

The rank object contains the rank post object, the set title, logo details, requirements and user count.

Continue Reading

myCRED_Transfer

The Transfer object is used for creating new transfers, rendering the transfer form or just retreating information about a particular transfer.

Continue Reading