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


PHP projects::getProjectsArr方法代码示例

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


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

示例1: setcookie

                $options_array['sortorder'] = 'DESC';
                setcookie('todo', object_to_cookie($options_array), time() + 60 * 60 * 24 * 365);
                $sortfield = $options_array['sortfield'];
                $sortorder = $options_array['sortorder'];
            }
            $onLoadElement = ' onload="x_getFormData(' . $todo->todo_foo->todo_id . ',' . $user->empl_id . ')"';
        }
    } else {
        foreach ($todo->errors as $errnumber) {
            $errors[] = $dict[$errnumber];
        }
    }
}
// Hier kommt die Differenzzeit in sekunden für die Warnung vor dem Ablauf
$todo_formvars->warndiff_options = array(0 => $dict['none'], 86400 => $dict['1day'], 172800 => $dict['2days'], 259200 => $dict['3days'], 345600 => $dict['4days'], 432000 => $dict['5days'], 604800 => $dict['1week'], 1209600 => $dict['2weeks']);
$todo_formvars->projects_options = $projects->getProjectsArr($dict);
$todo_formvars->projects_options_with_all = $projects->getProjectsArr($dict, false, true);
$todo_formvars->status_list = $status_list;
// Zuerst wird _SESSION Variable initialisiert, falls ist es noch nicht geschehen
$page_todo = isset($_SESSION['page_todo']) ? $_SESSION['page_todo'] : '';
// Danach wird sie aktualisiert mit neue $_POST - Werte, falls wiederum vorhanden
if (isset($_POST['page'])) {
    $page_todo = $_POST['page'];
}
// Jetzt speichern aktueller Wert page_todo in die Session
$_SESSION['page_todo'] = $page_todo;
// Jetzt kommz die Standard-Variable $page ins Spiel...
$page = $page_todo;
// Jetzt werden die Daten für ToDo-Liste ausgelesen.
$todolist = $todo->GetList($sortfield, $sortorder, $page, $searchstring, $pr_id, $prio, $status);
// Jetzt kommen letzte Vorbereitungen für Seiten-Ausgabe
开发者ID:blowfishJ,项目名称:galaxyCode,代码行数:31,代码来源:todo.app.php

示例2: empty

            }
            if (!empty($taet->taet_foo->taet_id)) {
                $onLoadElement = ' onload="x_getTaetData(' . $formvars->taet_id . ')"';
                $archivestyle = 'inline';
            }
        }
    }
}
$membid = $user->empl_position < 100 ? $user->empl_id : 0;
$taet->getMemberProjects($membid);
if (empty($formvars->projectActive)) {
    $formvars->projectActive = empty($taet->taet_foo->taet_prpos_id) ? 0 : $taet->getProjectIdByPrPos($taet->taet_foo->taet_prpos_id);
}
$formvars->projectsArray = $taet->projectsArray;
$projects = new projects();
$formvars->projects_options = $projects->getProjectsArr($dict);
$projectposition = new projectposition();
$formvars->projectpos_options = $projectposition->getNodes($formvars->projectActive);
$formvars->go_back = $formvars->taet_start - 60 * 60 * 24;
$formvars->go_forw = $formvars->taet_start + 60 * 60 * 24;
$timelist = $taet->getTaetTableList($formvars->taet_start, $user->empl_id);
$users[] = $user->empl_id;
$projectpos = array();
$formvars->statForThisDay = $taet->getStatistic($formvars->taet_start, $users, $projectpos);
$formvars->statForActlDay = $taet->getStatistic(time(), $users, $projectpos);
$formvars->expstart = date(DATEFIELD, $formvars->statForThisDay['thisMonthStartTime']);
$formvars->expfinish = date(DATEFIELD, $formvars->statForThisDay['thisMonthFinishTime']);
$PageTitle = $dict['activity_acquisition'];
$ContentTPL = 'taet.tpl';
$JavaScript = <<<END
开发者ID:blowfishJ,项目名称:galaxyCode,代码行数:30,代码来源:taet.app.php


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