Overview

Namespaces

  • Jity
    • HomepageBundle
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
        • Compiler
        • Service
          • Controller
      • Doctrine
        • Extension
          • DBAL
            • Types
      • Entity
      • EventListener
      • Form
        • Extension
      • Tests
        • Controller
      • Twig
        • Extension
  • PHP

Classes

  • CoreExtension
  • JityExtension
  • Overview
  • Namespace
  • Class
  • Tree

Class CoreExtension

CoreExtension

Core Twig extension to extend or override some defaults.

Twig_Extension_Core
Extended by Jity\HomepageBundle\Twig\Extension\CoreExtension
Namespace: Jity\HomepageBundle\Twig\Extension
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: Twig_Extension_Core
DI\Service("jity.twig.extension.core")
DI\Tag("twig.extension")
Located at Jity/HomepageBundle/Twig/Extension/CoreExtension.php
Methods summary
public
# getFilters( )

getFilters

getFilters

Returns a list of filters to add to the existing list.

public string
# dateFormat( Twig_Environment $env, integer|DateTime $date, string $format = null )

dateFormat

dateFormat

Wrap the default date filter, which exclusion of the format flag. A empty default format will be filled by local specific format with the help of IntlDateTime.

Parameters

$env
Twig_Environment
$env Twig Environment
$date
integer|DateTime
$date DateTime Object or Timestamp to format
$format
string
$format Optional Pattern for Formatting

Returns

string
Properties summary
protected Jity\HomepageBundle\Twig\Extension\CoreExtension::$dateFormats $dateFormats array(null, '%d days')
#

We dont need an default DateTime format. The default local setting will be used, or a format is given.

We dont need an default DateTime format. The default local setting will be used, or a format is given.

API documentation generated by ApiGen 2.8.0