本文整理汇总了PHP中event::set_next方法的典型用法代码示例。如果您正苦于以下问题:PHP event::set_next方法的具体用法?PHP event::set_next怎么用?PHP event::set_next使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类event
的用法示例。
在下文中一共展示了event::set_next方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _range_panel
function _range_panel(&$app, $c)
{
global $lang;
$p =& $app->ui;
$def =& $app->db->def;
$m = array('marker_field' => 'marker');
$p->paragraph();
# Link to creator of new record.
$p->v->cursor->set_key('');
$p->open_row();
$e = new event('tk_range_edit_select', $m);
$e->set_next($app->event());
$p->submit_button('select range', $e);
$sel = tk_range_edit_all_selected($app, 'marker');
if ($sel == 0 || $sel == 2) {
$e = new event('tk_range_edit_select', $m);
$e->set_next($app->event());
$p->submit_button('select all', $e);
}
if ($sel == 1 || $sel == 2) {
$e = new event('tk_range_edit_unselect', $m);
$e->set_next($app->event());
$p->submit_button('select all', $e);
}
$e_delete = new event('record_delete');
$e_delete->set_next($app->event());
$e = new event('tk_range_edit_call', array('view' => $e_delete, 'argname' => 'id', 'marker_field' => 'marker'));
generic_create($app, $c);
if ($c->have_submit_button) {
$p->cmd_update();
}
$p->close_row();
$p->paragraph();
}
示例2: event
function _make_cmd($cmd, $label, $handler, $args)
{
global $lang;
if (!$label) {
$label = $lang["cmd {$cmd}"];
}
$this->open_row_and_cell();
$e = new event(($this->no_update || $cmd == 'delete' ? 'record' : 'form') . "_{$cmd}");
$e->set_next($this->make_event($handler, $args));
$this->submit_button($label, $e);
$this->close_cell_and_row();
}
示例3: _show_object_class
function _show_object_class(&$documents, &$images, &$user_defined, &$configuration, &$cache, &$app, $table, $id, $only_local, $id_class, $class, $descr)
{
$p =& $app->ui;
$common_args = array('class' => $class, 'table' => $table, 'id' => $id, 'otable' => $table, 'oid' => $id);
$e_edit_data = new event('edit_data', $common_args);
$e_edit_data->set_caller($app->event());
$descr = preg_replace('/ /', ' ', $descr);
if (!isset($cache[$id_class])) {
# && ((!$only_local) || ($only_local && substr ($class, 0, 2) == 'u_'))) {
$e = new event('assoc_object', $common_args);
$e->set_next($e_edit_data);
$tmp = '[' . $p->_looselink("<FONT COLOR=\"BLACK\">{$descr}</FONT>", $e) . "]\n";
} else {
$tmp = _show_existing_object_class($images, $cache, $app, $table, $id, $only_local, $id_class, $class, $descr, $e_edit_data);
}
switch (substr($class, 0, 2)) {
case 'l_':
$documents .= $tmp;
break;
case 'd_':
$configuration .= $tmp;
break;
default:
$user_defined .= $tmp;
}
}