Merged in paulis/processmaker/MT-12-B (pull request #3897)

MT-12
This commit is contained in:
Gustavo Cruz
2016-03-22 14:23:09 -04:00
4 changed files with 110 additions and 42 deletions

View File

@@ -24,16 +24,17 @@ class ExportObjects
);
/**
* @param string $pro_uid
* @param string $objectsEnable
* @return mixed|string
* @throws \Exception
*/
public function objectList($pro_uid = '')
public function objectList($objectsEnable = '')
{
try {
$aObjectsEnable = explode('|', $objectsEnable);
foreach ($this->objectsList as $key => $val) {
$key++;
$grid[] = array('OBJECT_ID' => $key, 'OBJECT_NAME' => $val, 'OBJECT_ACTION' => 0);
$grid[] = array('OBJECT_ID' => $key, 'OBJECT_NAME' => $val, 'OBJECT_ENABLE' => in_array(strtoupper(str_replace(' ', '',$val)), $aObjectsEnable) );
}
$r = new \stdclass();