| 12345678910111213141516171819202122232425262728293031 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup UnaBaseView UNA Base Representation Classes
- * @{
- */
- /**
- * Services for category objects functionality - @see BxDolCategory
- */
- class BxBaseServiceCategory extends BxDol
- {
- /**
- * Get categories list
- */
- public function serviceCategoriesList ($sObject, $aParams = array())
- {
- $bShowEmpty = isset($aParams['show_empty']) ? (bool)$aParams['show_empty'] : false;
- $bShowEmptyCategories = isset($aParams['show_empty_categories']) ? (bool)$aParams['show_empty_categories'] : false;
- $sResult = BxDolCategory::getObjectInstance($sObject)->getCategoriesList($bShowEmptyCategories);
- if(empty($sResult))
- return $bShowEmpty ? MsgBox(_t('_Empty')) : '';
- return $sResult;
- }
- }
- /** @} */
|