本文整理匯總了PHP中ProjectManager::mergeALL方法的典型用法代碼示例。如果您正苦於以下問題:PHP ProjectManager::mergeALL方法的具體用法?PHP ProjectManager::mergeALL怎麽用?PHP ProjectManager::mergeALL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ProjectManager
的用法示例。
在下文中一共展示了ProjectManager::mergeALL方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: doAction
public function doAction()
{
$this->project_data = getProjectJobData($this->project_id);
try {
if (empty($this->project_data)) {
throw new Exception("No Project Found.", -1);
}
$pManager = new ProjectManager();
$pStruct = $pManager->getProjectStructure();
switch ($this->exec) {
case 'merge':
$this->checkMergeAccess();
$pStruct['job_to_merge'] = $this->job_id;
$pManager->mergeALL($pStruct);
break;
case 'check':
$this->checkSplitAccess();
$pStruct['job_to_split'] = $this->job_id;
$pStruct['job_to_split_pass'] = $this->job_pass;
$pManager->getSplitData($pStruct, $this->num_split, $this->split_values);
break;
case 'apply':
$this->checkSplitAccess();
$pStruct['job_to_split'] = $this->job_id;
$pStruct['job_to_split_pass'] = $this->job_pass;
$pManager->getSplitData($pStruct, $this->num_split, $this->split_values);
$pManager->applySplit($pStruct);
break;
}
$this->result["data"] = $pStruct['split_result'];
} catch (Exception $e) {
$this->result['errors'][] = array("code" => $e->getCode(), "message" => $e->getMessage());
}
}