本文整理汇总了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();
}