Hi there everyone,
I need a bit of data from an object and it looks like the part I need is considered private and I don't know how to record it to the database.
I need lastModified from this:
Character Object
(
[name:private] => Govannin
[region:private] => us
[realm:private] => Thrall
[characterData:private] => Array
(
[lastModified] => 1341425385000
[name] => Govannin
[realm] => Thrall
[battlegroup] => Stormstrike
[class] => 9
[race] => 1
[gender] => 0
[level] => 85
[achievementPoints] => 9705
[thumbnail] => thrall/96/35764320-avatar.jpg
[reputation] => Array
(
[0] => Array
(
[id] => 1098
[name] => Knights of the Ebon Blade
[standing] => 7
[value] => 999
[max] => 999
)
[1] => Array
(
[id] => 1094
[name] => The Silver Covenant
[standing] => 7
[value] => 999
[max] => 999
)
It seems that the proper way to get this is to use:
$lastactive = $character->characterData->lastModified;
but when I try echoing that, I get:
Fatal error: Cannot access private property Character::$characterData in /home/clash/public_html/reputation.php on line 10
I'm just trying to record it from the database. It's a last-seen timestamp and would hardly consider it actual private data since we all se when each of us is on, but I'm wondering if I can redeclare this as public info somehow so I can store it in the database for each user?