first phase of daemon refactoring

This commit is contained in:
redmatrix
2016-05-19 19:42:45 -07:00
parent 6e7d7c5017
commit 5b2474238e
18 changed files with 2122 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace Zotlabs\Daemon;
require_once('include/zot.php');
class Deliver_hooks {
static public function run($argc,$argv) {
if($argc < 2)
return;
$r = q("select * from item where id = '%d'",
intval($argv[1])
);
if($r)
call_hooks('notifier_normal',$r[0]);
}
}