* @package zin * @link https://www.zentao.net */ namespace zin; require_once __DIR__ . DS . 'zentao.func.php'; /** * The global event bind class. * * @example * bind::click('alert("ok")'); */ class bind { /** * Bind event by magic __callStatic, the method name as the event name. * * @param string $name * @param array $args * @return directive * @access public */ public static function __callStatic(string $name, array $args): directive { list($callback, $others) = array_merge($args, array(array())); return bind($name, $callback, $others); } }