Member Object

Accessing The Object

<?php
$user = new user();
$memberData = $user->get_member($member_id);
var_dump($memberData);

Components

Key Description Type
member_id The ID of the member. String
data Array containing all fields in the database related to this member. Array
password The plain text password. Note that this will ONLY ever be accessible when the member registers for the first time. After that, passwords are encrpyted and cannot be revealed in plain text. String
content Content that the user has access to. Array
raw_data Raw representation of all of the above data. Array
raw_data['newsletters'] Newsletter campaigns the user is subscribed to. Array

Sample Output

Array
(
    [member_id] => JJEH-56172-78819
    [tracking_id] => 
    [data] => Array
        (
            [id] => JJEH-56172-78819
            [username] => johndoe
            [password] => 5ecd91ef347e5d58cd55233a76e7d1fea54ba390
            [salt] => -RvE
            [email] => johndoe@castlamp.com
            [bounce_notice] => 0000-00-00 00:00:00
            [joined] => 2018-07-18 23:02:03
            [last_renewal] => 2018-07-18 23:02:03
            [last_action] => 2018-07-18 23:02:03
            [last_login] => 0000-00-00 00:00:00
            [last_updated] => 2018-07-18 23:02:03
            [last_date_check] => 2018-07-18 23:02:03
            [next_action] => 0000-00-00 00:00:00
            [last_updated_by] => 
            [status] => A
            [status_msg] => 
            [conversion_id] => 0
            [source] => 12
            [concurrent_login_notices] => 0
            [concurrent_login_date] => 0000-00-00 00:00:00
            [public] => 0
            [owner] => 2
            [email_pref] => html
            [locked] => 0000-00-00 00:00:00
            [locked_ip] => 
            [login_attempts] => 0
            [account] => GEN_MEMBER
            [email_optout] => 0
            [sms_optout] => 0
            [activation_code] => 
            [activated] => 0000-00-00 00:00:00
            [start_page] => 
            [converted] => 0
            [converted_id] => 0
            [listing_display] => 0
            [member_type] => 1
            [member_id] => JJEH-56172-78819
            [first_name] => John
            [last_name] => Doe
            [address_line_1] => 123 Sesame St
            [address_line_2] => Apt 2B
            [city] => New York
            [state] => NY
            [zip] => 10001
            [country] => United States
            [phone] => 
            [fax] => 
            [dob] => 0000-00-00
            [industry] =>
            [facebook] => 
            [twitter] => 
            [linkedin] => 
            [cell] => 
            [cell_carrier] => 
            [alt_phone] => 
            [office_phone] => 
            [cvv] => 
            [show_status] => Active
            [status_read] => Active
            [mtype] => Standard Member
        )
    [raw_data] => Array
        (
            [member] => Array
                (
                    [username] => johndoe
                    [password] => pass123
                    [first_name] => John
                    [last_name] => Doe
                    [email] => johndoe@castlamp.com
                    [address_line_1] => 123 Sesame St
                    [address_line_2] => Apt 2B
                    [city] => New York
                    [state] => NY
                    [zip] => 10001
                    [country] => United States
                    [id] => JJEH-56172-78819
                    [source] => 12
                    [account] => GEN_MEMBER
                    [status] => A
                    [member_type] => 1
                    [last_updated] => 2018-07-18 23:02:03
                    [last_renewal] => 2018-07-18 23:02:03
                    [last_action] => 2018-07-18 23:02:03
                    [last_login] => 2018-07-18 23:02:03
                    [salt] => -RvE
                    [joined] => 2018-07-18 23:02:03
                )
            [content] => Array
                (
                    [0] => Array
                        (
                            [id] => 5
                            [item_id] => 6701939
                            [type] => content
                            [grants_to] => 11
                            [timeframe] => 001900000000
                        )
                )
            [newsletters] => Array
                (
                )
        )
    [password] => pass123
    [content] => Array
        (
            [0] => Array
                (
                    [id] => 5
                    [item_id] => 6701939
                    [type] => content
                    [grants_to] => 11
                    [timeframe] => 001900000000
                )
        )
    [_task] => Array
        (
            [trigger] => member_create
            [when] => 2
            [specific_trigger] => register-6701939
            [hook_id] => 38
            [plugin] => 
        )
)

Last modified 3 weeks ago.