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


PHP CProject::getStructuredProjects方法代码示例

本文整理汇总了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);
}
开发者ID:illuminate3,项目名称:web2project,代码行数:13,代码来源:deprecated_functions.php

示例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) {
开发者ID:victorrod,项目名称:web2project,代码行数:31,代码来源:vw_idx_projects.php


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