當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。