HOR-2052
This commit is contained in:
Paula V. Quispe
2016-10-27 12:06:06 -04:00
parent 3d56df5497
commit 6be1b9e8fd
3 changed files with 52 additions and 2 deletions

View File

@@ -2016,4 +2016,33 @@ class Task
//Return
return false;
}
/**
* Return a specific value from TASK table
*
* @param string $prjUid Unique uid of Project
* @param string $actUid Unique uid of Task
* @param array $arrayColumns name of column
*
* return string
*/
public function getColumnValues($prjUid, $actUid, $arrayColumns){
try {
$prj_uid = $this->validateProUid($prjUid);
$taskUid = $this->validateActUid($actUid);
$task = new \Task();
$arrayDataAux = $task->load($taskUid);
$aProperties = array();
foreach ($arrayColumns as $value) {
if(isset($arrayDataAux[$value])){
$aProperties[] = $arrayDataAux[$value];
} else {
$aProperties[] = '';
}
}
return $aProperties;
} catch (Exception $e) {
throw $e;
}
}
}