本文整理汇总了PHP中CProject::getStructuredProjects方法的典型用法代码示例。如果您正苦于以下问题:PHP CProject::getStructuredProjects方法的具体用法?PHP CProject::getStructuredProjects怎么用?PHP CProject::getStructuredProjects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CProject
的用法示例。
在下文中一共展示了CProject::getStructuredProjects方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getStructuredProjects
/**
* TODO: Remove for v4.0 - caseydk 20 September 2012
*
* @deprecated
*/
function getStructuredProjects($original_project_id = 0, $project_status = -1, $active_only = false)
{
trigger_error("getStructuredProjects has been deprecated in v3.0 and will be removed in v4.0. Please use CProject->getStructuredProjects() instead.", E_USER_NOTICE);
$project = new CProject();
$project->project_original_parent = $original_project_id;
$project->project_status = $project_status;
return $project->getStructuredProjects($active_only);
}
示例2: array
</th>
</tr>
<?php
$none = true;
$projectArray = array();
$project_types = w2PgetSysVal('ProjectType');
$project_status = w2PgetSysVal('ProjectStatus');
$customLookups = array('project_status' => $project_status, 'project_type' => $project_types);
foreach ($items as $row) {
$tmpProject = new CProject();
$st_projects_arr = array();
if ($row['project_id'] == $row['project_original_parent']) {
$tmpProject->project_original_parent = $row['project_original_parent'];
$tmpProject->project_status = -1;
if ($project_status_filter == -2) {
$st_projects_arr = $tmpProject->getStructuredProjects(true);
} else {
$st_projects_arr = $tmpProject->getStructuredProjects();
}
} else {
$st_projects_arr[0][1] = 0;
}
if (!is_array($st_projects_arr)) {
continue;
}
$htmlHelper = new w2p_Output_HTMLHelper($AppUI);
foreach ($st_projects_arr as $st_project) {
$multiproject_id = 0;
$project_id = isset($st_project[0]) ? $st_project[0]['project_id'] : 0;
$level = $st_project[1];
if ($project_id) {