ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
TwigTestFoo Class Reference
+ Inheritance diagram for TwigTestFoo:
+ Collaboration diagram for TwigTestFoo:

Public Member Functions

 bar ($param1=null, $param2=null)
 
 getFoo ()
 
 getSelf ()
 
 is ()
 
 in ()
 
 not ()
 
 strToLower ($value)
 
 rewind ()
 
 current ()
 
 key ()
 
 next ()
 
 valid ()
 

Data Fields

const BAR_NAME = 'bar'
 
 $position = 0
 
 $array = array(1, 2)
 

Detailed Description

Definition at line 44 of file IntegrationTest.php.

Member Function Documentation

◆ bar()

TwigTestFoo::bar (   $param1 = null,
  $param2 = null 
)

Definition at line 51 of file IntegrationTest.php.

52  {
53  return 'bar'.($param1 ? '_'.$param1 : '').($param2 ? '-'.$param2 : '');
54  }

◆ current()

TwigTestFoo::current ( )

Definition at line 91 of file IntegrationTest.php.

92  {
93  return $this->array[$this->position];
94  }

◆ getFoo()

TwigTestFoo::getFoo ( )

Definition at line 56 of file IntegrationTest.php.

57  {
58  return 'foo';
59  }

◆ getSelf()

TwigTestFoo::getSelf ( )

Definition at line 61 of file IntegrationTest.php.

62  {
63  return $this;
64  }

◆ in()

TwigTestFoo::in ( )

Definition at line 71 of file IntegrationTest.php.

72  {
73  return 'in';
74  }

◆ is()

TwigTestFoo::is ( )

Definition at line 66 of file IntegrationTest.php.

67  {
68  return 'is';
69  }

◆ key()

TwigTestFoo::key ( )

Definition at line 96 of file IntegrationTest.php.

97  {
98  return 'a';
99  }

◆ next()

TwigTestFoo::next ( )

Definition at line 101 of file IntegrationTest.php.

102  {
103  ++$this->position;
104  }

◆ not()

TwigTestFoo::not ( )

Definition at line 76 of file IntegrationTest.php.

77  {
78  return 'not';
79  }

◆ rewind()

TwigTestFoo::rewind ( )

Definition at line 86 of file IntegrationTest.php.

87  {
88  $this->position = 0;
89  }

◆ strToLower()

TwigTestFoo::strToLower (   $value)

Definition at line 81 of file IntegrationTest.php.

82  {
83  return strtolower($value);
84  }

◆ valid()

TwigTestFoo::valid ( )

Definition at line 106 of file IntegrationTest.php.

107  {
108  return isset($this->array[$this->position]);
109  }

Field Documentation

◆ $array

TwigTestFoo::$array = array(1, 2)

Definition at line 49 of file IntegrationTest.php.

◆ $position

TwigTestFoo::$position = 0

Definition at line 48 of file IntegrationTest.php.

◆ BAR_NAME

const TwigTestFoo::BAR_NAME = 'bar'

Definition at line 46 of file IntegrationTest.php.


The documentation for this class was generated from the following file: