getDefaultDepartmentId($storeId); /** @var AW_Helpdesk3_Model_Department $depModel */ $depModel = Mage::getModel('aw_hdu3/department'); $depModel->load($depId); return ($depModel->getId() && $depModel->isEnabled()); } public function isActiveDepartments($storeId = null) { $departmentCollection = Mage::getModel('aw_hdu3/department')->getCollection(); $departmentCollection->addActiveFilter(); if ($storeId) { $departmentCollection->addFilterByStoreId($storeId); } if ($departmentCollection->getSize() > 0) { return true; } return false; } }