public function Messaging_User_Object::__construct in Messaging 6.4
Constructor, with predefined array of data
File
- includes/
messaging_object.class.inc, line 29 - Drupal Messaging Framework - Base classes
Class
- Messaging_User_Object
- Messaging user's object
Code
public function __construct($template = NULL) {
if ($template) {
foreach ($template as $key => $value) {
$this->{$key} = $value;
}
}
// Make sure all objects have language
if (!isset($this->language)) {
$this
->set_language();
}
}