本文整理匯總了PHP中project::Load方法的典型用法代碼示例。如果您正苦於以下問題:PHP project::Load方法的具體用法?PHP project::Load怎麽用?PHP project::Load使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類project
的用法示例。
在下文中一共展示了project::Load方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetCollection
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: intval
<?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')) {