Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezurlaliasfilterappendnodeid.php
Go to the documentation of this file.
1 <?php
18 class eZURLAliasFilterAppendNodeID extends eZURLAliasFilter
19 {
23 public function __construct() {}
24
35 public function process( $text, &$languageObject, &$caller )
36 {
37 if( !$caller instanceof eZContentObjectTreeNode )
38 {
39 eZDebug::writeError( 'The caller variable was not an eZContentObjectTreeNode', __METHOD__ );
40 return $text;
41 }
42
43 $ini = eZINI::instance( 'site.ini' );
44 $applyOnClassList = $ini->variable( 'AppendNodeIDFilterSettings', 'ApplyOnClass' );
45
46 $classIdentifier = $caller->attribute( 'class_identifier' );
47
48 if( in_array( $classIdentifier, $applyOnClassList ) )
49 {
50 $separator = eZCharTransform::wordSeparator();
51 $text .= $separator . $caller->attribute( 'node_id' );
52 }
53
54 return $text;
55 }
56 }
57 ?>
eZCharTransform\wordSeparator
static wordSeparator()
Definition: ezchartransform.php:339
eZDebug\writeError
static writeError( $string, $label="", $backgroundClass="")
Definition: ezdebug.php:546
eZURLAliasFilterAppendNodeID
Definition: ezurlaliasfilterappendnodeid.php:19
eZURLAliasFilterAppendNodeID\__construct
__construct()
Definition: ezurlaliasfilterappendnodeid.php:23
eZURLAliasFilterAppendNodeID\process
process( $text, &$languageObject, &$caller)
Definition: ezurlaliasfilterappendnodeid.php:35
$ini
$ini
Definition: classes/admin/linklist.php:64
$separator
else $separator
Definition: cron_alerts.php:52
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.