public static function Notifications_Event::build_object in Notifications 7
Build Event from db object
Overrides Notifications_Entity::build_object
File
- ./
notifications.event.inc, line 78 - Drupal Notifications Framework - Default class file
Class
- Notifications_Event
- Notifications Event class
Code
public static function build_object($object) {
$class = self::type_info($object->type, 'class', 'Notifications_Event');
if (!empty($object->data)) {
drupal_unpack($object);
}
return new $class($object);
}