Paperyard
Public Member Functions | List of all members
Paperyard\Helpers\Din1355TwigExtension Class Reference
Inheritance diagram for Paperyard\Helpers\Din1355TwigExtension:

Public Member Functions

 getFilters ()
 
 din1355 ($value)
 
 getName ()
 

Detailed Description

Definition at line 5 of file Din1355TwigExtension.php.

Member Function Documentation

Paperyard\Helpers\Din1355TwigExtension::din1355 (   $value)

Definition at line 14 of file Din1355TwigExtension.php.

15  {
16  if (is_numeric($value)) {
17  return date_format(date_create($value), 'd.m.Y');
18  }
19 
20  return $value;
21  }
Paperyard\Helpers\Din1355TwigExtension::getFilters ( )

Definition at line 7 of file Din1355TwigExtension.php.

8  {
9  return array(
10  'din1355' => new \Twig_SimpleFilter('din1355', array($this, 'din1355'))
11  );
12  }
Paperyard\Helpers\Din1355TwigExtension::getName ( )

Definition at line 23 of file Din1355TwigExtension.php.

24  {
25  return 'din1355_extention';
26  }

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