BxInvModule.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Invites Invites
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolAcl');
  12. define('BX_INV_TYPE_FROM_MEMBER', 'from_member');
  13. define('BX_INV_TYPE_FROM_SYSTEM', 'from_system');
  14. class BxInvModule extends BxDolModule
  15. {
  16. /**
  17. * Constructor
  18. */
  19. function __construct($aModule)
  20. {
  21. parent::__construct($aModule);
  22. $this->_oConfig->init($this->_oDb);
  23. }
  24. /**
  25. * ACTION METHODS
  26. */
  27. function serviceGetLink()
  28. {
  29. $iProfileId = $this->getProfileId();
  30. $iAccountId = $this->getAccountId($iProfileId);
  31. $mixedAllowed = $this->isAllowedInvite($iProfileId);
  32. if($mixedAllowed !== true)
  33. return echoJson(array('message' => $mixedAllowed));
  34. if(!isAdmin($iAccountId)) {
  35. if($this->_oConfig->getCountPerUser() <= 0)
  36. return bx_is_api() ? [bx_api_get_msg(_t('_bx_invites_err_limit_reached'))] : echoJson(array('message' => _t('_bx_invites_err_limit_reached')));
  37. }
  38. $oKeys = BxDolKey::getInstance();
  39. if(!$oKeys)
  40. return bx_is_api() ? [bx_api_get_msg(_t('_bx_invites_err_not_available'))] : echoJson(array('message' => _t('_bx_invites_err_not_available')));
  41. $sKey = $oKeys->getNewKey(false, $this->_oConfig->getKeyLifetime());
  42. $sRedirectUrl = '';
  43. $sRedirectCode = $this->_oConfig->getRedirectCode();
  44. if(($oSession = BxDolSession::getInstance()) && $oSession->isValue($sRedirectCode))
  45. $sRedirectUrl = $oSession->getValue($sRedirectCode);
  46. $oForm = $this->getFormObjectInvite();
  47. $oForm->insert(array(
  48. 'account_id' => $iAccountId,
  49. 'profile_id' => $iProfileId,
  50. 'key' => $sKey,
  51. 'redirect' => $sRedirectUrl,
  52. 'email' => '',
  53. 'date' => time()
  54. ));
  55. $this->onInvite($iProfileId);
  56. if (bx_is_api()){
  57. return ['link' => bx_api_get_relative_url($this->getJoinLink($sKey))];
  58. }
  59. echoJson(array('popup' => $this->_oTemplate->getLinkPopup(
  60. $this->getJoinLink($sKey)
  61. )));
  62. }
  63. function actionGetLink()
  64. {
  65. $this->serviceGetLink();
  66. }
  67. public function actionSetSeenMark($Code)
  68. {
  69. header('Content-Type: image/png');
  70. if (isset($Code) && trim($Code) != "")
  71. $this->_oDb->updateDateSeenForInvite($Code);
  72. }
  73. /**
  74. * SERVICE METHODS
  75. */
  76. public function serviceGetSafeServices()
  77. {
  78. return array (
  79. 'GetBlockInvite' => '',
  80. 'GetBlockFormInvite' => '',
  81. 'GetBlockFormRequest' => '',
  82. 'GetLink' => '',
  83. );
  84. }
  85. /**
  86. * @page service Service Calls
  87. * @section bx_invites Invitations
  88. * @subsection bx_invites-other Other
  89. * @subsubsection bx_invites-get_include get_include
  90. *
  91. * @code bx_srv('bx_invites', 'get_include', [...]); @endcode
  92. *
  93. * Get all necessary CSS and JS files to include in a page.
  94. *
  95. * @return string with all necessary CSS and JS files.
  96. *
  97. * @see BxInvModule::serviceGetInclude
  98. */
  99. /**
  100. * @ref bx_invites-get_include "get_include"
  101. */
  102. public function serviceGetInclude()
  103. {
  104. return $this->_oTemplate->getInclude();
  105. }
  106. /**
  107. * @page service Service Calls
  108. * @section bx_invites Invitations
  109. * @subsection bx_invites-page_blocks Page Blocks
  110. * @subsubsection bx_invites-get_block_invite get_block_invite
  111. *
  112. * @code bx_srv('bx_invites', 'get_block_invite', [...]); @endcode
  113. *
  114. * Get page block for member's Dashboard which displays invitations related info and action(s).
  115. *
  116. * @return an array describing a block to display on the site or empty string if something is wrong. All necessary CSS and JS files are automatically added to the HEAD section of the site HTML.
  117. *
  118. * @see BxInvModule::serviceGetBlockInvite
  119. */
  120. /**
  121. * @ref bx_invites-get_block_invite "get_block_invite"
  122. */
  123. public function serviceGetBlockInvite($bRedirect = false)
  124. {
  125. $iProfileId = $this->getProfileId();
  126. $iAccountId = $this->getAccountId($iProfileId);
  127. $mixedAllowed = $this->isAllowedInvite($iProfileId);
  128. if($mixedAllowed !== true)
  129. return '';
  130. if(!isAdmin($iAccountId) && $this->_oConfig->getCountPerUser() <= 0)
  131. return '';
  132. return [
  133. 'content' => $this->_oTemplate->getBlockInvite($iAccountId, $iProfileId, (bool)$bRedirect)
  134. ];
  135. }
  136. /**
  137. * @page service Service Calls
  138. * @section bx_invites Invitations
  139. * @subsection bx_invites-page_blocks Page Blocks
  140. * @subsubsection bx_invites-get_block_form_invite get_block_form_invite
  141. *
  142. * @code bx_srv('bx_invites', 'get_block_form_invite', [...]); @endcode
  143. *
  144. * Get page block with invite form.
  145. *
  146. * @return an array describing a block to display on the site. All necessary CSS and JS files are automatically added to the HEAD section of the site HTML.
  147. *
  148. * @see BxInvModule::serviceGetBlockFormInvite
  149. */
  150. /**
  151. * @ref bx_invites-get_block_form_invite "get_block_form_invite"
  152. */
  153. public function serviceGetBlockFormInvite()
  154. {
  155. $oForm = $this->getFormObjectInvite();
  156. $oForm->aInputs['text']['value'] = _t('_bx_invites_msg_invitation');
  157. $sResult = '';
  158. $oForm->initChecker();
  159. if($oForm->isSubmittedAndValid()){
  160. $sResult = MsgBox($this->processFormObjectInvite($oForm));
  161. if (bx_is_api()){
  162. return [bx_api_get_msg($sResult)];
  163. }
  164. }
  165. if (bx_is_api())
  166. return [bx_api_get_block('form', $oForm->getCodeAPI(), ['ext' => ['name' => $this->getName(), 'request' => ['url' => '/api.php?r=' . $this->getName() . '/get_block_form_invite', 'immutable' => true]]])];
  167. return [
  168. 'content' => $sResult . $oForm->getCode()
  169. ];
  170. }
  171. /**
  172. * @page service Service Calls
  173. * @section bx_invites Invitations
  174. * @subsection bx_invites-page_blocks Page Blocks
  175. * @subsubsection bx_invites-get_block_form_request get_block_form_request
  176. *
  177. * @code bx_srv('bx_invites', 'get_block_form_request', [...]); @endcode
  178. *
  179. * Get page block with request invitation form.
  180. *
  181. * @return an array describing a block to display on the site. All necessary CSS and JS files are automatically added to the HEAD section of the site HTML.
  182. *
  183. * @see BxInvModule::serviceGetBlockFormRequest
  184. */
  185. /**
  186. * @ref bx_invites-get_block_form_request "get_block_form_request"
  187. */
  188. public function serviceGetBlockFormRequest()
  189. {
  190. $mixedResult = $this->_oTemplate->getBlockFormRequest();
  191. if (bx_is_api())
  192. return $mixedResult;
  193. if(is_array($mixedResult)) {
  194. echoJson($mixedResult);
  195. exit;
  196. }
  197. return array(
  198. 'content' => $mixedResult
  199. );
  200. }
  201. /**
  202. * @page service Service Calls
  203. * @section bx_invites Invitations
  204. * @subsection bx_invites-page_blocks Page Blocks
  205. * @subsubsection bx_invites-get_block_manage_requests get_block_manage_requests
  206. *
  207. * @code bx_srv('bx_invites', 'get_block_manage_requests', [...]); @endcode
  208. *
  209. * Get page block with manage invitation requests table.
  210. *
  211. * @return HTML string with block content to display on the site or empty string if something is wrong. All necessary CSS and JS files are automatically added to the HEAD section of the site HTML.
  212. *
  213. * @see BxInvModule::serviceGetBlockManageRequests
  214. */
  215. /**
  216. * @ref bx_invites-get_block_manage_requests "get_block_manage_requests"
  217. */
  218. public function serviceGetBlockManageRequests()
  219. {
  220. return $this->getBlockManage('requests');
  221. }
  222. /**
  223. * @page service Service Calls
  224. * @section bx_invites Invitations
  225. * @subsection bx_invites-page_blocks Page Blocks
  226. * @subsubsection bx_invites-get_block_manage_invites get_block_manage_requests
  227. *
  228. * @code bx_srv('bx_invites', 'get_block_manage_invites', [...]); @endcode
  229. *
  230. * Get page block with manage invitations table.
  231. *
  232. * @return HTML string with block content to display on the site or empty string if something is wrong. All necessary CSS and JS files are automatically added to the HEAD section of the site HTML.
  233. *
  234. * @see BxInvModule::serviceGetBlockManageInvites
  235. */
  236. /**
  237. * @ref bx_invites-get_block_manage_invites "get_block_manage_invites"
  238. */
  239. public function serviceGetBlockManageInvites()
  240. {
  241. return $this->getBlockManage('invites');
  242. }
  243. /**
  244. * @page service Service Calls
  245. * @section bx_invites Invitations
  246. * @subsection bx_invites-other Other
  247. * @subsubsection bx_invites-get_menu_addon_requests get_menu_addon_requests
  248. *
  249. * @code bx_srv('bx_invites', 'get_menu_addon_requests', [...]); @endcode
  250. *
  251. * Get number or invitation requests.
  252. *
  253. * @return integer value with number of invitation requests.
  254. *
  255. * @see BxInvModule::serviceGetMenuAddonRequests
  256. */
  257. /**
  258. * @ref bx_invites-get_menu_addon_requests "get_menu_addon_requests"
  259. */
  260. public function serviceGetMenuAddonRequests()
  261. {
  262. return array('counter3_value' => $this->_oDb->getRequests(array('type' => 'count_all')));
  263. }
  264. /**
  265. * @page service Service Calls
  266. * @section bx_invites Invitations
  267. * @subsection bx_invites-other Other
  268. * @subsubsection bx_invites-account_add_form_check account_add_form_check
  269. *
  270. * @code bx_srv('bx_invites', 'account_add_form_check', [...]); @endcode
  271. *
  272. * Perform neccessary checking on join form.
  273. *
  274. * @return empty string - if join is allowed and should be processed as usual, non-empty string - if join form need to be replaced with this code.
  275. *
  276. * @see BxInvModule::serviceAccountAddFormCheck
  277. */
  278. /**
  279. * @ref bx_invites-account_add_form_check "account_add_form_check"
  280. */
  281. public function serviceAccountAddFormCheck()
  282. {
  283. $sReturn = '';
  284. $oSession = BxDolSession::getInstance();
  285. $sKeyCode = $this->_oConfig->getKeyCode();
  286. $bKey = bx_get($sKeyCode) !== false;
  287. if($bKey) {
  288. $sKey = bx_process_input(bx_get($sKeyCode));
  289. $oKeys = BxDolKey::getInstance();
  290. if($oKeys && $oKeys->isKeyExists($sKey))
  291. $oSession->setValue($sKeyCode, $sKey);
  292. }
  293. $sKey = $oSession->getValue($sKeyCode);
  294. if($sKey !== false)
  295. return $sReturn;
  296. if($bKey)
  297. $sReturn .= MsgBox(_t('_bx_invites_err_used'));
  298. if ($this->_oConfig->isRegistrationByInvitation())
  299. $sReturn .= $this->_oTemplate->getBlockRequest();
  300. return $sReturn;
  301. }
  302. /**
  303. * Data for Notifications module
  304. */
  305. public function serviceGetNotificationsData()
  306. {
  307. $sModule = $this->_aModule['name'];
  308. $sEventPrivacy = $sModule . '_allow_view_event_to';
  309. if(BxDolPrivacy::getObjectInstance($sEventPrivacy) === false)
  310. $sEventPrivacy = '';
  311. return array(
  312. 'handlers' => array(
  313. array('group' => $sModule . '_object', 'type' => 'insert', 'alert_unit' => $sModule, 'alert_action' => 'request_notify', 'module_name' => $sModule, 'module_method' => 'get_notifications_request', 'module_class' => 'Module', 'module_event_privacy' => $sEventPrivacy),
  314. ),
  315. 'settings' => array(
  316. array('group' => 'request', 'unit' => $sModule, 'action' => 'request_notify', 'types' => array('personal')),
  317. ),
  318. 'alerts' => array(
  319. array('unit' => $sModule, 'action' => 'request_notify'),
  320. )
  321. );
  322. }
  323. /**
  324. * Entry post for Notifications module
  325. */
  326. public function serviceGetNotificationsRequest($aEvent)
  327. {
  328. if (getParam('bx_invites_requests_notifications') != 'on')
  329. return [];
  330. $aRequest = $this->_oDb->getRequests(array('type' => 'by_id', 'value' => $aEvent['object_id']));
  331. if (!$aRequest)
  332. return [];
  333. $CNF = &$this->_oConfig->CNF;
  334. $sEntryUrl = bx_absolute_url(BxDolPermalinks::getInstance()->permalink($CNF['URL_REQUESTS']), '{bx_url_root}');
  335. return [
  336. 'entry_sample' => $aRequest['name'] . '(' . $aRequest['email'] . ')',
  337. 'entry_url' => $sEntryUrl,
  338. 'entry_caption' => $aRequest['text'],
  339. 'entry_author' => '',
  340. 'entry_privacy' => '', //may be empty or not specified. In this case Public privacy will be used.
  341. 'lang_key' => '_bx_invites_alert_action_request', //may be empty or not specified. In this case the default one from Notification module will be used.
  342. ];
  343. }
  344. public function attachAccountIdToInvite($iAccountId, $sKey)
  345. {
  346. $this->_oDb->attachAccountIdToInvite($iAccountId, $sKey);
  347. }
  348. public function invite($sType, $aEmails, $sText, $mixedLimit)
  349. {
  350. if(empty($aEmails) || !is_array($aEmails))
  351. return false;
  352. $oKeys = BxDolKey::getInstance();
  353. if(!$oKeys || !in_array($sType, [BX_INV_TYPE_FROM_MEMBER, BX_INV_TYPE_FROM_SYSTEM]))
  354. return false;
  355. $iKeyLifetime = $this->_oConfig->getKeyLifetime();
  356. $sRedirectUrl = '';
  357. $sRedirectCode = $this->_oConfig->getRedirectCode();
  358. if(($oSession = BxDolSession::getInstance()) && $oSession->isValue($sRedirectCode))
  359. $sRedirectUrl = $oSession->getValue($sRedirectCode);
  360. $sEmailTemplate = '';
  361. switch($sType) {
  362. case BX_INV_TYPE_FROM_MEMBER:
  363. $sEmailTemplate = 'bx_invites_invite_form_message';
  364. break;
  365. case BX_INV_TYPE_FROM_SYSTEM:
  366. $sEmailTemplate = 'bx_invites_invite_by_request_message';
  367. break;
  368. }
  369. $iDate = time();
  370. $iProfileId = $this->getProfileId();
  371. $iAccountId = $this->getAccountId($iProfileId);
  372. $aMessage = BxDolEmailTemplates::getInstance()->parseTemplate($sEmailTemplate, array(
  373. 'text' => $sText
  374. ), $iAccountId, $iProfileId);
  375. $aResults = [];
  376. foreach($aEmails as $sEmail) {
  377. if($mixedLimit !== false && (int)$mixedLimit <= 0)
  378. break;
  379. $sEmail = trim($sEmail);
  380. if(empty($sEmail))
  381. continue;
  382. $sKey = $oKeys->getNewKey(false, $iKeyLifetime);
  383. if(sendMail($sEmail, $aMessage['Subject'], $aMessage['Body'], 0, array('join_url' => $this->getJoinLink($sKey), 'seen_image_url' => $this->getSeenImageUrl($sKey)), BX_EMAIL_SYSTEM)) {
  384. $iInviteId = (int)$this->_oDb->insertInvite([
  385. 'account_id' => $iAccountId,
  386. 'profile_id' => $iProfileId,
  387. 'key' => $sKey,
  388. 'redirect' => $sRedirectUrl,
  389. 'email' => $sEmail,
  390. 'date' => $iDate
  391. ]);
  392. $this->onInvite($iProfileId);
  393. $aResults[] = $sEmail;
  394. if($mixedLimit !== false)
  395. $mixedLimit -= 1;
  396. }
  397. }
  398. return $aResults;
  399. }
  400. public function processFormObjectInvite(&$oForm)
  401. {
  402. $iProfileId = $this->getProfileId();
  403. $iAccountId = $this->getAccountId($iProfileId);
  404. $mixedAllowed = $this->isAllowedInvite($iProfileId);
  405. if($mixedAllowed !== true)
  406. return $mixedAllowed;
  407. $mixedInvites = false;
  408. if(!isAdmin($iAccountId)) {
  409. if(($mixedInvites = $this->_oConfig->getCountPerUser()) <= 0)
  410. return _t('_bx_invites_err_limit_reached');
  411. }
  412. $sEmails = bx_process_input($oForm->getCleanValue('emails'));
  413. $aEmails = preg_split("/[\s\n,;]+/", $sEmails);
  414. $sText = bx_process_pass($oForm->getCleanValue('text'));
  415. $sResult = _t('_bx_invites_err_not_available');
  416. if(($aEmailsSent = $this->invite(BX_INV_TYPE_FROM_MEMBER, $aEmails, $sText, $mixedInvites)) !== false) {
  417. $sEmailsResult = '';
  418. if(count($aEmails) != count($aEmailsSent))
  419. $sEmailsResult = implode('; ', array_diff($aEmails, $aEmailsSent));
  420. $oForm->aInputs['emails']['value'] = $sEmailsResult;
  421. $sResult = _t('_bx_invites_msg_invitation_sent', count($aEmailsSent));
  422. }
  423. return $sResult;
  424. }
  425. public function isAllowedInvite($iProfileId, $bPerform = false)
  426. {
  427. $aCheckResult = checkActionModule($iProfileId, 'invite', $this->getName(), $bPerform);
  428. return $aCheckResult[CHECK_ACTION_RESULT] !== CHECK_ACTION_RESULT_ALLOWED ? $aCheckResult[CHECK_ACTION_MESSAGE] : true;
  429. }
  430. public function isAllowedRequest($iProfileId, $bPerform = false)
  431. {
  432. $aCheckResult = checkActionModule($iProfileId, 'request', $this->getName(), $bPerform);
  433. return $aCheckResult[CHECK_ACTION_RESULT] !== CHECK_ACTION_RESULT_ALLOWED ? $aCheckResult[CHECK_ACTION_MESSAGE] : true;
  434. }
  435. public function isAllowedDeleteRequest($iProfileId, $bPerform = false)
  436. {
  437. $aCheckResult = checkActionModule($iProfileId, 'delete request', $this->getName(), $bPerform);
  438. return $aCheckResult[CHECK_ACTION_RESULT] !== CHECK_ACTION_RESULT_ALLOWED ? $aCheckResult[CHECK_ACTION_MESSAGE] : true;
  439. }
  440. public function isAllowedDeleteInvite($iProfileId, $bPerform = false)
  441. {
  442. $aCheckResult = checkActionModule($iProfileId, 'delete invite', $this->getName(), $bPerform);
  443. return $aCheckResult[CHECK_ACTION_RESULT] !== CHECK_ACTION_RESULT_ALLOWED ? $aCheckResult[CHECK_ACTION_MESSAGE] : true;
  444. }
  445. public function getProfileId()
  446. {
  447. return isLogged() ? bx_get_logged_profile_id() : 0;
  448. }
  449. public function getProfileObject($iProfileId = 0)
  450. {
  451. $oProfile = BxDolProfile::getInstance($iProfileId);
  452. if (!$oProfile)
  453. $oProfile = BxDolProfileUndefined::getInstance();
  454. return $oProfile;
  455. }
  456. public function getAccountId($iProfileId)
  457. {
  458. $oProfile = $this->getProfileObject($iProfileId);
  459. if($oProfile->id() == 0)
  460. return 0;
  461. return $oProfile->getAccountId();
  462. }
  463. public function onRequest($iRequestId)
  464. {
  465. //--- Event -> Request for Alerts Engine ---//
  466. bx_alert($this->_oConfig->getObject('alert'), 'request', $iRequestId);
  467. $aProfiles = BxDolAclQuery::getInstance()->getProfilesByMembership(array(MEMBERSHIP_ID_MODERATOR, MEMBERSHIP_ID_ADMINISTRATOR));
  468. foreach($aProfiles as $aProfile) {
  469. bx_alert($this->_oConfig->getObject('alert'), 'request_notify', $iRequestId, 0, array('parent_author_id' => $aProfile['id']));
  470. }
  471. //--- Event -> Request for Alerts Engine ---//
  472. }
  473. public function getFormObjectInvite($sDisplay = '')
  474. {
  475. if(empty($sDisplay))
  476. $sDisplay = $this->_oConfig->getObject('form_display_invite_send');
  477. bx_import('FormCheckerHelper', $this->_aModule);
  478. return BxDolForm::getObjectInstance($this->_oConfig->getObject('form_invite'), $sDisplay);
  479. }
  480. protected function getBlockManage($sType)
  481. {
  482. $this->_oTemplate->addJs('jquery.form.min.js');
  483. $this->_oTemplate->addJs('main.js');
  484. $oGrid = BxDolGrid::getObjectInstance($this->_oConfig->getObject('grid_' . $sType));
  485. if(!$oGrid)
  486. return '';
  487. $this->_oTemplate->addCss(array('main.css'));
  488. $this->_oTemplate->addJsTranslation(array('_sys_grid_search'));
  489. return array(
  490. 'menu' => $this->_oTemplate->getMenuForManageBlocks($sType),
  491. 'content' => $this->_oTemplate->getJsCode('main', array('grid' => $sType)) . $oGrid->getCode()
  492. );
  493. }
  494. public function onInvite($iProfileId)
  495. {
  496. $this->isAllowedInvite($iProfileId, true);
  497. //--- Event -> Invite for Alerts Engine ---//
  498. bx_alert($this->_oConfig->getObject('alert'), 'invite', 0, $iProfileId);
  499. //--- Event -> Invite for Alerts Engine ---//
  500. }
  501. public function getJoinLink($sKey)
  502. {
  503. $sKeyCode = $this->_oConfig->getKeyCode();
  504. $sJoinUrl = bx_absolute_url(BxDolPermalinks::getInstance()->permalink('page.php?i=create-account'));
  505. return bx_append_url_params($sJoinUrl, array($sKeyCode => $sKey));
  506. }
  507. public function getSeenImageUrl($sKey)
  508. {
  509. return BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'SetSeenMark/' . $sKey . "/";
  510. }
  511. }
  512. /** @} */