ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_Source Class Reference

Holds information about a non-compiled Twig template. More...

+ Collaboration diagram for Twig_Source:

Public Member Functions

 __construct ($code, $name, $path='')
 
 getCode ()
 
 getName ()
 
 getPath ()
 

Private Attributes

 $code
 
 $name
 
 $path
 

Detailed Description

Holds information about a non-compiled Twig template.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 19 of file Source.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Source::__construct (   $code,
  $name,
  $path = '' 
)
Parameters
string$codeThe template source code
string$nameThe template logical name
string$pathThe filesystem path of the template if any

Definition at line 30 of file Source.php.

References $code, $name, and $path.

31  {
32  $this->code = $code;
33  $this->name = $name;
34  $this->path = $path;
35  }

Member Function Documentation

◆ getCode()

Twig_Source::getCode ( )

Definition at line 37 of file Source.php.

References $code.

38  {
39  return $this->code;
40  }

◆ getName()

Twig_Source::getName ( )

Definition at line 42 of file Source.php.

References $name.

43  {
44  return $this->name;
45  }

◆ getPath()

Twig_Source::getPath ( )

Definition at line 47 of file Source.php.

References $path.

48  {
49  return $this->path;
50  }

Field Documentation

◆ $code

Twig_Source::$code
private

Definition at line 21 of file Source.php.

Referenced by __construct(), and getCode().

◆ $name

Twig_Source::$name
private

Definition at line 22 of file Source.php.

Referenced by __construct(), and getName().

◆ $path

Twig_Source::$path
private

Definition at line 23 of file Source.php.

Referenced by __construct(), and getPath().


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