ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_TemplatePropertyObjectAndArrayAccess Class Reference
+ Inheritance diagram for Twig_TemplatePropertyObjectAndArrayAccess:
+ Collaboration diagram for Twig_TemplatePropertyObjectAndArrayAccess:

Public Member Functions

 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Private Attributes

 $data
 

Additional Inherited Members

- Data Fields inherited from Twig_TemplatePropertyObject
 $defined = 'defined'
 
 $zero = 0
 
 $null = null
 
 $bar = true
 
 $baz = 'baz'
 
- Protected Attributes inherited from Twig_TemplatePropertyObject
 $protected = 'protected'
 

Detailed Description

Definition at line 595 of file TemplateTest.php.

Member Function Documentation

◆ offsetExists()

Twig_TemplatePropertyObjectAndArrayAccess::offsetExists (   $offset)

Definition at line 605 of file TemplateTest.php.

References data.

606  {
607  return array_key_exists($offset, $this->data);
608  }
Add some data

◆ offsetGet()

Twig_TemplatePropertyObjectAndArrayAccess::offsetGet (   $offset)

Definition at line 610 of file TemplateTest.php.

References data.

611  {
612  return $this->offsetExists($offset) ? $this->data[$offset] : 'n/a';
613  }
Add some data

◆ offsetSet()

Twig_TemplatePropertyObjectAndArrayAccess::offsetSet (   $offset,
  $value 
)

Definition at line 615 of file TemplateTest.php.

616  {
617  }

◆ offsetUnset()

Twig_TemplatePropertyObjectAndArrayAccess::offsetUnset (   $offset)

Definition at line 619 of file TemplateTest.php.

620  {
621  }

Field Documentation

◆ $data

Twig_TemplatePropertyObjectAndArrayAccess::$data
private
Initial value:
'defined' => 'defined',
'zero' => 0,
'null' => null,
'bar' => true,
'baz' => 'baz',
)

Definition at line 597 of file TemplateTest.php.


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