public function user_activity::__get in Heartbeat 6.2
Method gets a user_activity variable
@desc The magic getter method fetches a variable in members. If not found there, it will always check the variables as well
File
- ./
heartbeat.module, line 74 - To fully understand this, you have to be familiar with the rules module. Lots of documentation can be found on http://drupal.org/node/298480 for an introduction and tutorial, but http://drupal.org/node/298486 is a lot of handy info for developers.
Class
- user_activity
- Class to handle user activity data
Code
public function __get($variable) {
// a private member is asked
$var = null;
if (isset($this->{'m_' . $variable})) {
$var = $this->{'m_' . $variable};
}
else {
if (array_key_exists($variable, $this->m_variables_array)) {
$var = $this->m_variables_array[$variable];
}
}
return $var;
}