_oObject = $aParams['object']; $this->_iValue = isset($aParams['value']) ? (int)$aParams['value'] : $this->_oObject->getValue(); } protected function getMenuItemsRaw() { $sJsObject = $this->_oObject->getJsObjectName(); $aReactions = $this->_oObject->getReactions(true); $sDefault = $this->_oObject->getDefault(); $aMenuItems = array(); foreach($aReactions as $sName => $aReaction) { if($sName == $sDefault) continue; $sEmoji = $this->_oObject->getEmoji($sName); $aMenuItems[] = array( 'id' => $sName, 'name' => $sName, 'class' => '', 'link' => 'javascript:void(0)', 'onclick' => 'javascript:' . $this->_oObject->getJsClickDo($sName, $this->_iValue), 'target' => '_self', 'title' => _t($aReaction['title']), 'icon' => $sEmoji != '' ? $sEmoji : $this->_oObject->getIcon($sName), 'active' => 1 ); } return $aMenuItems; } protected function _getMenuItem ($a) { $aResult = parent::_getMenuItem($a); if(empty($aResult) || !is_array($aResult)) return $aResult; $aResult['title'] = ''; $aResult['bx_if:title']['condition'] = false; return $aResult; } } /** @} */