Overview

Namespaces

  • Thelia
    • Action
    • Controller
    • Core
      • Bundle
      • Event
      • EventListener
      • Template
    • Exception
    • Log
      • Destination
    • Model
      • map
      • om
    • Routing
      • Matcher
    • Tools
    • Tpex
      • Loop

Classes

  • Tpex
  • Overview
  • Namespace
  • Class
  • Tree

Class Tpex

Namespace: Thelia\Tpex
Located at core/vendor/Thelia/Tpex/Thelia/Tpex/Tpex.php
Methods summary
public
# init( Symfony\Component\HttpFoundation\Request $request, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, string $content, string $basedir )

Parameters

$request
Symfony\Component\HttpFoundation\Request
$request
$dispatcher
Symfony\Component\EventDispatcher\EventDispatcherInterface
$dispatcher
$content
string
$content
$basedir
string
$basedir
public
# setLogger( Psr\Log\LoggerInterface $logger )
public
# addLoop( string $name, type $className )

Parameters

$name
string
$name loop name. Must be unique
$className
type
$className class name that implementing/extending loop classes

Throws

InvalidArgumentException
public
# execute( )
Properties summary
protected string $content
#

$content contains string to parse

protected string $basedir
#

the base directory for searching all files for inclusion

protected Symfony\Component\HttpFoundation\Request $request
#
protected Psr\Log\LoggerInterface $logger
#
protected Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher
#
protected Array $loop
#

associative array containing information for loop execution

associative array containing information for loop execution

key is loop name value is the class implementing/extending base loop classes

ex :

$loop = array( "product" => "Thelia\Loop\Product", "category" => "Thelia\Loop\Category", "myLoop" => "My\Own\Loop" );

protected Array $filter
#

associative array containing information for filter execution

associative array containing information for filter execution

key is filter name value is the class implementing/extending base loop classes

ex :

$filter = array( "upperCase" => "Thelia\Filter\UpperCase", "lowerCase" => "Thelia\Filter\LowerCase", "myFilter" => "My\Own\Filter" );

protected mixed $substitution
#
protected mixed $init
#
thelia API documentation generated by ApiGen 2.8.0