public function HeartbeatActivity::__set in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 includes/heartbeatactivity.inc \HeartbeatActivity::__set()
Method sets a heartbeat_activity property
@desc The magic setter method sets a variable to member If not found, just stash in the variables array
File
- includes/
heartbeatactivity.inc, line 102
Class
- HeartbeatActivity
- Class to handle user activity data
Code
public function __set($variable, $value) {
if (property_exists($this, 'm_' . $variable)) {
$this->{'m_' . $variable} = $value;
}
else {
if (property_exists($this, $variable)) {
$this->{$variable} = $value;
}
else {
$this->m_variables_array[$variable] = $value;
}
}
}