case 'add_presets': //Debug::setVerbosity(11); PayStubEntryAccountFactory::addPresets($current_company->getId()); Redirect::Page(URLBuilder::getURL(NULL, 'PayStubEntryAccountList.php')); case 'add': Redirect::Page(URLBuilder::getURL(NULL, 'EditPayStubEntryAccount.php', FALSE)); break; case 'delete' or 'undelete': if (strtolower($action) == 'delete') { $delete = TRUE; } else { $delete = FALSE; } $psealf = new PayStubEntryAccountListFactory(); foreach ($ids as $id) { $psealf->getByIdAndCompanyId($id, $current_company->getId()); foreach ($psealf as $psea_obj) { $psea_obj->setDeleted($delete); if ($psea_obj->isValid()) { $psea_obj->Save(); } } } Redirect::Page(URLBuilder::getURL(NULL, 'PayStubEntryAccountList.php')); break; default: BreadCrumb::setCrumb($title); $psealf = new PayStubEntryAccountListFactory(); $psealf->getByCompanyId($current_company->getId()); $pager = new Pager($psealf); $status_options = $psealf->getOptions('status');