Skip to content

Member module : membership data structure

Chris Murray edited this page Nov 20, 2013 · 1 revision

The member_membership_data() method returns an array of data structures with the following format.

$membership = array(
    'sid' => A unique ID
    , 'cid' => The unique ID of the member from the [[Contact Module]]
    , 'pid' => The unique ID of the [[Member module : plan data structure]]
    , 'start' => The date the member signed up for the plan
    , 'end' =>  The date the member cancelled the plan (or NULL if they haven't yet)
);