本文整理汇总了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());
}
}