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


PHP ListView::unique_id方法代码示例

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


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

示例1: ListView

}
//because some imports also populate data in related modules, we sometimes need to
//step through multiple modules
// set $currentModule to something other than $related_module
// or else return_module_language will not work
global $currentModule;
$currentModule = 'import';
foreach ($focus->related_modules as $related_module) {
    $new_bean = $import_bean_map[$related_module];
    require_once "modules/Import/{$new_bean}.php";
    $new_focus = new $new_bean();
    //$newForm = null;
    //$seedUsersLastImport = new UsersLastImport();
    //$seedUsersLastImport->bean_type = $related_module;
    //$seedUsersLastImport->field_name_map = $new_focus->field_name_map;
    //$seedUsersLastImport->field_defs=$new_focus->field_defs;
    $current_module_strings = return_module_language($current_language, $related_module);
    $where = "users_last_import.assigned_user_id='{$current_user->id}' AND users_last_import.bean_type='{$related_module}' and users_last_import.bean_id={$new_focus->table_name}.id AND users_last_import.deleted=0";
    //adds button that allows users to link imported prospects with a prospect list..
    if ($focus->object_name == "Prospect" && $related_module == 'Prospects') {
        echo add_to_prospect_list_button($new_focus, $new_focus->create_list_query("", $where), '');
    }
    echo "<BR>";
    $ListView = new ListView();
    $ListView->show_export_button = false;
    $ListView->initNewXTemplate("modules/{$related_module}/ListView.html", $current_module_strings);
    $ListView->setHeaderTitle($last_imported_title . " " . $related_module);
    $ListView->setQuery("", "", "", $new_focus->list_view_prefix);
    $ListView->processListView($new_focus, "main", $new_focus->list_view_prefix);
    $_SESSION[$new_focus->list_view_prefix . "_FROM_LIST_VIEW"] = $ListView->unique_id();
}
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:ImportSteplast.php


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