@@ -35,12+35,12 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate {
/**
* First parameter seperator
*/
/**
* First parameter seperator
*/
- private $firstParameter = '?';
+ const FIRST_PARAMETER_SEPERATOR = '?';
/**
* Seperator for more paraemters
*/
/**
* Seperator for more paraemters
*/
- private $parameterSeperator = '&';
+ const EXTRA_PARAMETER_SEPERATOR = '&';
/**
* Protected constructor
/**
* Protected constructor
@@ -61,7+61,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate {
* @return $helperInstance A prepared instance of this helper
* @throws NoConfigEntryException A deprecated exception at this point
*/
* @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();
// Get new instance
$helperInstance = new WebLinkHelper();
@@ -92,7+92,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate {
// Is the deprecated parameter set?
if (!is_null($linkBase)) {
// Then output a deprecation message
// 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
} // END - if
// Determine link base from config now and 'page' request
@@ -277,13+277,13 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate {