MODULE = 'bx_tasks'; parent::__construct($aObject, $oTemplate); } public function setContextId($iContextId) { $this->_iContextId = (int)$iContextId; $this->addMarkers([ 'profile_id' => $this->_iContextId ]); } protected function _isVisible($a) { if(!parent::_isVisible($a)) return false; $bResult = true; switch ($a['name']) { case 'tasks-context-time-administration': case 'tasks-context-budget-administration': case 'tasks-context-values': $bResult = $this->_oModule->isAllowManageByContext($this->_iContextId); break; } return $bResult; } } /** @} */