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 JityExtension

JityExtension

Twig extension to parse dynamically loaded templates.

Twig_Extension
Extended by Jity\HomepageBundle\Twig\Extension\JityExtension
Namespace: Jity\HomepageBundle\Twig\Extension
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: Twig_Extension
DI\Service("jity.twig.extension.jity")
DI\Tag("twig.extension")
Located at Jity/HomepageBundle/Twig/Extension/JityExtension.php
Methods summary
public
# __construct( array $config, Router $router, Handler $serviceHandler )

__construct

__construct

Initalize a new JityExtension instance.

Parameters

$config
array
$config DI Injected Bundle Config
$router
Router
$router DI Injected Router Service
$serviceHandler
Handler
$serviceHandler DI Injected Jity Service Handler

DI\InjectParams({

"config" = @DI\Inject("%jity_homepage%"), "router" = @DI\Inject("router"), "serviceHandler" = @DI\Inject("jity_service.handler") })
public string
# getName( )

getName

getName

Returns the name of the extension.

Returns

string
The extension name
public array
# getFunctions( )

getFunctions

getFunctions

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

Returns

array
An array of functions
public string
# evaluateString( Twig_Environment $env, mixed $context, mixed $template )

evaluateString

evaluateString

Loads a string template and returns the rendered version.

Parameters

$env
Twig_Environment
$env Twig Environment
$context
mixed
$context Twig Context
$template
mixed
$template The string template to load

Returns

string
public boolean
# searchIsEnabled( )

searchIsEnabled

searchIsEnabled

Evaluate the configured status of the search.

Returns

boolean
public string
# service( string $name, string $parameters = null )

service

service

Get the route (slug from service page) to a service by name.

Parameters

$name
string
$name Name of the service to route
$parameters
string
$parameters Unparsed Service Parameters

Returns

string
API documentation generated by ApiGen 2.8.0