| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * CC-BY License - http://creativecommons.org/licenses/by/3.0/
- *
- * @defgroup DolphinCore Dolphin Core
- * @{
- */
- /**
- * Functions to automate profile creation/editing/deletion forms.
- */
- class BxDolProfileForms extends BxDol
- {
- /**
- * Constructor
- */
- protected function __construct ()
- {
- parent::__construct ();
- }
- protected function _redirectAndExit ($sUrl, $isPermalink = true, $aMarkers = false)
- {
- if ($isPermalink) {
- bx_import('BxDolPermalinks');
- $sUrl = BxDolPermalinks::getInstance()->permalink($sUrl);
- }
- header('Location: ' . BX_DOL_URL_ROOT . $this->_replaceMarkers($sUrl, $aMarkers));
- exit;
- }
- /**
- * Replace provided markers in a string, markers are surrounded by '{' and '}' signs, for example: a.php?x={id}
- * @param $mixed string or array to replace markers in
- * @param $aMarkers araay or markers for replacement, for example: array ('num' => 123, 'name' => 'Ivan');
- * @return string where all markers are replaced
- */
- protected function _replaceMarkers ($mixed, $aMarkers)
- {
- return bx_replace_markers($mixed, $aMarkers);
- }
- }
- /** @} */
|