function getByCompanyIdArray($company_id, $include_blank = TRUE)
 {
     $epclf = new ExceptionPolicyControlListFactory();
     $epclf->getByCompanyId($company_id);
     if ($include_blank == TRUE) {
         $list[0] = '--';
     }
     foreach ($epclf as $epc_obj) {
         $list[$epc_obj->getID()] = $epc_obj->getName();
     }
     if (isset($list)) {
         return $list;
     }
     return FALSE;
 }
        }
        $epclf = new ExceptionPolicyControlListFactory();
        foreach ($ids as $id) {
            $epclf->getByIdAndCompanyId($id, $current_company->getId());
            foreach ($epclf as $epc_obj) {
                $epc_obj->setDeleted($delete);
                if ($epc_obj->isValid()) {
                    $epc_obj->Save();
                }
            }
        }
        Redirect::Page(URLBuilder::getURL(NULL, 'ExceptionPolicyControlList.php'));
        break;
    default:
        $epclf = new ExceptionPolicyControlListFactory();
        $epclf->getByCompanyId($current_company->getId());
        $pager = new Pager($epclf);
        $show_no_policy_group_notice = FALSE;
        foreach ($epclf as $epc_obj) {
            if ((int) $epc_obj->getColumn('assigned_policy_groups') == 0) {
                $show_no_policy_group_notice = TRUE;
            }
            $policies[] = array('id' => $epc_obj->getId(), 'name' => $epc_obj->getName(), 'assigned_policy_groups' => (int) $epc_obj->getColumn('assigned_policy_groups'), 'deleted' => $epc_obj->getDeleted());
        }
        $smarty->assign_by_ref('policies', $policies);
        $smarty->assign_by_ref('show_no_policy_group_notice', $show_no_policy_group_notice);
        $smarty->assign_by_ref('sort_column', $sort_column);
        $smarty->assign_by_ref('sort_order', $sort_order);
        $smarty->assign_by_ref('paging_data', $pager->getPageVariables());
        break;
}