function getByCompanyIdAndStatusIdArray($company_id, $status_id, $include_blank = TRUE) { if ($status_id == '') { return FALSE; } $cdlf = new CompanyDeductionListFactory(); $cdlf->getByCompanyIdAndStatusId($company_id, $status_id); //$psenlf->getByTypeId($type_id); $list = array(); if ($include_blank == TRUE) { $list[0] = '--'; } foreach ($cdlf as $obj) { $list[$obj->getID()] = $obj->getName(); } return $list; }