X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_watch.php;h=0f9b19f65dcf266709069fb322be1f9b88d77029;hp=edc38e4f8cb41fc695f93452eb20670febb9716c;hb=d5ef27157c6266fc33685d6d68f8304379f169ae;hpb=58f497e06f220823bb854277160de7caf1888375 diff --git a/DataObjects/Core_watch.php b/DataObjects/Core_watch.php index edc38e4f..0f9b19f6 100644 --- a/DataObjects/Core_watch.php +++ b/DataObjects/Core_watch.php @@ -1,3 +1,4 @@ + listActions($roo,$q); + } + //die("apply filters"); + if (!empty($q['_split_event_name'])) { + $this->selectAdd(" + + substr( event, substring_index(event, '.')) as event_left, + substr( event, 0, substring_index(event, '.')) as event_right + + "); + + + + } + + } + + function toRooArraySingle($q) + { + die("here"); + + } + + function listActions($roo, $q) { + + //print_r($q); + $d = DB_DataObject::Factory($q['on_table']); + $ret = array(); + + foreach(get_class_methods($d) as $m) { + //var_dump($m); + if (!preg_match('/^notify/', $m)) { + continue; + } + $ret[] = array( + 'display_name' => preg_replace('/^notify/', '' , $m), + 'name' => $q['on_table'] .':'. $m + ); + } + $roo->jdata($ret); + } + /** * * Create a watch... * */ + + + function ensureNotify( $ontable, $onid, $person_id, $whereAdd) { //DB_DAtaObject::debugLevel(1);