$this->etype();
- $this->defaults();
-
- foreach ($this->defaults as $k => $v){
- $enum = DB_DataObject::factory('core_enum');
- $enum->setFrom(array(
- 'etype' => $this->etype->name,
- 'name' => $k,
- 'active' => 1
- ));
-
- if($enum->find(true)){
- continue;
- }
-
- $enum->display_name = $v;
- $enum->insert();
- }
-
+// $this->defaults();
+//
+// foreach ($this->defaults as $k => $v){
+// $enum = DB_DataObject::factory('core_enum');
+// $enum->setFrom(array(
+// 'etype' => $this->etype->name,
+// 'name' => $k,
+// 'active' => 1
+// ));
+//
+// if($enum->find(true)){
+// continue;
+// }
+//
+// $enum->display_name = $v;
+// $enum->insert();
+// }
+//
+ $notify = DB_DataObject::factory('core_notify');
+ $notify->selectAdd();
+ $notify->selectAdd("
+ DISTINCT(evtype) AS evtype
+ ");
+
+ $types = $notify->fetchAll();
+
+ print_r($types);exit;