예제 #1
0
파일: project.php 프로젝트: hur1s/folio_api
 public static function GetCollection($projectRequest)
 {
     $projectData = new projectData();
     $resultSet = $projectData->GetCollection($projectRequest);
     $projectCollection = array();
     while ($dataRowAsArray = $resultSet->fetch_assoc()) {
         $project = new project($projectRequest);
         $project->Load($dataRowAsArray);
         $projectCollection[] = $project;
     }
     return $projectCollection;
 }
예제 #2
0
파일: file.php 프로젝트: YuriyRusinov/reper
<?php

$include_header_footer = intval(get_request_variable('ajax-request', 0)) === 1 ? false : true;
$item_id = intval(get_request_variable('id', 0));
$type = get_request_variable('type', '');
$db = db_class::get_instance();
$legend_title = 'Файлы';
$enable = false;
if ($item_id > 0 && $type == 'project') {
    $legend_title = 'Файлы проекта';
    $project = new project();
    $project->id_project = $item_id;
    if ($project->Load() && $project->CheckActionEnable($STORAGE, 'file')) {
        $enable = true;
    }
    $obj2attach =& $project;
}
if ($item_id > 0 && $type == 'stage') {
    $legend_title = 'Файлы этапа';
    $stage = new stage();
    $stage->id_stage = $item_id;
    if ($stage->Load() && $stage->CheckActionEnable($STORAGE, 'file')) {
        $enable = true;
    }
    $obj2attach =& $stage;
}
if ($item_id > 0 && $type == 'task') {
    $legend_title = 'Файлы задачи';
    $task = new task();
    $task->id_task = $item_id;
    if ($task->Load() && $task->CheckActionEnable($STORAGE, 'file')) {