当前位置: 首页>>代码示例>>PHP>>正文


PHP event::set_caller方法代码示例

本文整理汇总了PHP中event::set_caller方法的典型用法代码示例。如果您正苦于以下问题:PHP event::set_caller方法的具体用法?PHP event::set_caller怎么用?PHP event::set_caller使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在event的用法示例。


在下文中一共展示了event::set_caller方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: category_overview

function category_overview(&$app)
{
    global $lang;
    $p =& $app->ui;
    $conf = new tree_edit_conf();
    $conf->source = 'directories';
    $conf->id = '1';
    $conf->treeview = $app->event();
    $conf->nodeview = 'view_pages';
    $conf->nodecreator = 'create_category';
    $conf->rootname = 'shop';
    $conf->table = 'directories';
    $conf->name = 'name';
    $conf->id = 'id';
    $conf->preset_values = array('id_directory_type' => get_directory_type_id($app->db, 'category'));
    $conf->txt_select_node = $lang['msg choose category to move'];
    $conf->txt_select_dest = $lang['msg choose dest category'];
    $conf->txt_moved = $lang['msg category moved'];
    $conf->txt_not_moved = $lang['err category not moved'];
    $conf->txt_move_again = $lang['cmd move further'];
    $conf->txt_back = $lang['cmd back/quit'];
    $conf->txt_unnamed = $lang['unnamed'];
    $e = new event('tree_edit_move', array('conf' => $conf));
    $e->set_caller($app->event());
    $p->link($lang['cmd move_category'], $e);
    tree_edit($app, $conf);
}
开发者ID:Geopay,项目名称:dev-coin-online-shop,代码行数:27,代码来源:categories.php

示例2: _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;
    }
}
开发者ID:Geopay,项目名称:dev-coin-online-shop,代码行数:26,代码来源:objects.php


注:本文中的event::set_caller方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。