function serviceGetWallPostOutline($aEvent) { $aParams = array('txt_privacy_view_event' => 'view_product', 'obj_privacy' => $this->_oPrivacyProduct, 'templates' => array('grouped' => 'wall_outline_grouped')); return parent::_serviceGetWallPostOutline($aEvent, 'shopping-cart', $aParams); }
function serviceGetWallPostOutline($aEvent) { $aItems = array(); $aObjectIds = strpos($aEvent['object_id'], ',') !== false ? explode(',', $aEvent['object_id']) : array($aEvent['object_id']); foreach ($aObjectIds as $iId) { $aItem = $this->_oDb->getEntryByIdAndOwner($iId, $aEvent['owner_id'], 1); if ($aItem && $aItem['EventEnd'] > time()) { $aItems[] = $iId; } } if (empty($aItems)) { return ''; } $aEvent['object_id'] = join(',', $aItems); $aParams = array('txt_privacy_view_event' => 'view_event', 'obj_privacy' => $this->_oPrivacy, 'templates' => array('grouped' => 'wall_outline_grouped')); return parent::_serviceGetWallPostOutline($aEvent, 'calendar', $aParams); }