isEnabled() && $config->isIntegrationWithContactFormEnabled() ; } /** * @return bool */ public function isCanShowDepartment() { return AW_Helpdesk3_Helper_Config::isCanShowDepartmentSelectorOnTicketCreate(); } /** * @return bool */ public function isCanShowPriority() { return AW_Helpdesk3_Helper_Config::isCanShowPrioritySelectorOnTicketCreate(); } /** * @return bool */ public function isCanShowAttachment() { return AW_Helpdesk3_Helper_Config::isAllowCustomerToAttachFilesOnFrontend(); } /** * @return array */ public function getDepartmentOptionList() { return AW_Helpdesk3_Model_Source_Department::toOptionArrayForStoreId(); } /** * @return array */ public function getPriorityOptionList() { return AW_Helpdesk3_Model_Source_Ticket_Priority::toOptionArray(Mage::app()->getStore()->getId()); } /** * @param int|string $priorityId * * @return bool */ public function isPriorityDefault($priorityId) { return intval($priorityId) == AW_Helpdesk3_Model_Source_Ticket_Priority::TODO_VALUE; } /** * @param int|string $departmentId * * @return bool */ public function isDepartmentDefault($departmentId) { return intval($departmentId) == AW_Helpdesk3_Helper_Config::getDefaultDepartmentId(); } /** * file size in Mb * * @return null|int */ public function getMaxAvailableFileSize() { $fileSizeInMb = AW_Helpdesk3_Helper_Config::getMaxUploadFileSizeOnFrontend(); if ($fileSizeInMb <= 0) { return null; } return $fileSizeInMb; } /** * @return array */ public function getAvailableFileExtensionList() { return explode(',', AW_Helpdesk3_Helper_Config::getAllowFileExtension()); } }