public function Messaging_User_Object::__set in Messaging 6.4
Magic function. Set protected properties
We have a problem when creating records. Serial fields are unset() by drupal_write_record For these fields, though they're public, when there's a __set function it is called too
File
- includes/
messaging_object.class.inc, line 47 - Drupal Messaging Framework - Base classes
Class
- Messaging_User_Object
- Messaging user's object
Code
public function __set($name, $value) {
if ($name == 'uid' || $name == 'language') {
$this->{$name} = $value;
}
}