private $linkBase = '';
/**
- * First parameter seperator
+ * First parameter separator
*/
- const FIRST_PARAMETER_SEPERATOR = '?';
+ const FIRST_PARAMETER_SEPARATOR = '?';
/**
- * Seperator for more paraemters
+ * SEPARATOR for more paraemters
*/
- const EXTRA_PARAMETER_SEPERATOR = '&';
+ const EXTRA_PARAMETER_SEPARATOR = '&';
/**
* Protected constructor
* @return $helperInstance A prepared instance of this helper
* @throws NoConfigEntryException A deprecated exception at this point
*/
- public static final function createWebLinkHelper (CompileableTemplate $templateInstance, $linkName, $linkBase = null) {
+ public static final function createWebLinkHelper (CompileableTemplate $templateInstance, $linkName, $linkBase = NULL) {
// Get new instance
$helperInstance = new WebLinkHelper();
// Is the deprecated parameter set?
if (!is_null($linkBase)) {
// Then output a deprecation message
- $helperInstance->deprecationWarning(__METHOD__ . ': linkBase is deprecated. Please remove it from your templates and add a config entry ' . $configEntry . ' in your config.php file.');
+ $helperInstance->deprecationWarning('[' . __METHOD__ . ':' . __LINE__ . ']: linkBase is deprecated. Please remove it from your templates and add a config entry ' . $configEntry . ' in your config.php file.');
} // END - if
// Determine link base from config now and 'page' request
throw new NoGroupOpenedException(array($this, $linkAction . '(' . $linkText . ')'), self::EXCEPTION_GROUP_NOT_OPENED);
} // END - if
- // Default parameter seperator is &
- $seperator = self::EXTRA_PARAMETER_SEPERATOR;
+ // Default parameter SEPARATOR is &
+ $separator = self::EXTRA_PARAMETER_SEPARATOR;
// Is there a question mark in?
- $linkArray = explode(self::FIRST_PARAMETER_SEPERATOR, $this->getLinkBase());
+ $linkArray = explode(self::FIRST_PARAMETER_SEPARATOR, $this->getLinkBase());
if (count($linkArray) == 0) {
// No question mark
- $seperator = self::FIRST_PARAMETER_SEPERATOR;
+ $separator = self::FIRST_PARAMETER_SEPARATOR;
} // END - if
// Prepare action
$action = sprintf("%saction=%s",
- $seperator,
+ $separator,
$linkAction
);