/** * Sets the category placeholder's to the template * * @global object $objInit * @global array $_ARRAYLANG * @param object $objTpl * @param integer $categoryId */ function showCategory($objTpl, $categoryId) { global $objInit, $_ARRAYLANG; $objCategory = new \Cx\Modules\Calendar\Controller\CalendarCategory(intval($categoryId)); $this->categoryList[$categoryId] = $objCategory; $objCategory->getData(); $objTpl->setVariable(array($this->moduleLangVar . '_CATEGORY_ID' => $objCategory->id, $this->moduleLangVar . '_CATEGORY_STATUS' => $objCategory->status == 0 ? $_ARRAYLANG['TXT_CALENDAR_INACTIVE'] : $_ARRAYLANG['TXT_CALENDAR_ACTIVE'], $this->moduleLangVar . '_CATEGORY_NAME' => $objCategory->name, $this->moduleLangVar . '_CATEGORY_NAME_MASTER' => $objCategory->arrData['name'][0])); }