MT-28 manejo de respuestas ajax... para la visulaizacion del listObject

This commit is contained in:
dheeyi
2016-03-23 13:28:28 -04:00
parent d3a211a627
commit 62851d499e
4 changed files with 68 additions and 53 deletions

View File

@@ -63,5 +63,28 @@ class ExportObjects
throw $e;
}
}
/**
* @param $objects
* @return array
* @throws \Exception
*/
public function getIdObjectList($objects)
{
try {
$idObjectList = array();
foreach ($this->objectsList as $key => $val) {
$key++;
foreach ($objects as $row) {
if(strtoupper(str_replace(' ', '', $this->objectsList[$key - 1])) === $row){
array_push($idObjectList, $key);
}
}
}
return $idObjectList;
} catch (\Exception $e) {
throw $e;
}
}
}