Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezpattributeoperatortextformatter.php
Go to the documentation of this file.
1 <?php
12 class ezpAttributeOperatorTextFormatter extends ezpAttributeOperatorFormatter implements ezpAttributeOperatorFormatterInterface
13 {
14
22 public function header( $value, $showValues )
23 {
24 return $value;
25 }
26
36 public function line( $key, $item, $showValues, $level )
37 {
38 $type = $this->getType( $item );
39 $value = $this->getValue( $item );
40 $spacing = str_repeat( " ", $level * 4 );
41
42 if ( $showValues )
43 $output = "{$spacing}{$key} ({$type}={$value})\n";
44 else
45 $output = "{$spacing}{$key} ({$type})\n";
46
47 return $output;
48 }
49 }
$level
$level
Definition: admin/message.php:106
$item
$item
Definition: classes/admin/linklist.php:228
$type
$type
Definition: classes/admin/linkselect.php:220
ezpAttributeOperatorFormatter
Definition: ezpattributeoperatorformatter.php:13
ezpAttributeOperatorFormatter\getValue
getValue( $item)
Definition: ezpattributeoperatorformatter.php:35
ezpAttributeOperatorFormatter\getType
getType( $item)
Definition: ezpattributeoperatorformatter.php:20
ezpAttributeOperatorTextFormatter
Definition: ezpattributeoperatortextformatter.php:13
ezpAttributeOperatorTextFormatter\header
header( $value, $showValues)
Definition: ezpattributeoperatortextformatter.php:22
ezpAttributeOperatorTextFormatter\line
line( $key, $item, $showValues, $level)
Definition: ezpattributeoperatortextformatter.php:36
$output
$output
Definition: formpreview.php:81
ezpAttributeOperatorFormatterInterface
Definition: ezpattributeoperatorformatterinterface.php:13
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.