PHP Class eZ\Publish\Core\MVC\Symfony\Translation\ValidationErrorFileVisitor

Inheritance: implements JMS\TranslationBundle\Logger\LoggerAwareInterface, implements JMS\TranslationBundle\Translation\Extractor\FileVisitorInterface, implements PhpParser\NodeVisitor
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$classToExtractFrom Methods and "domain" parameter offset to extract from PHP code.
$defaultDomain string

Public Methods

Method Description
__construct ( DocParser $docParser, JMS\TranslationBundle\Translation\FileSourceFactory $fileSourceFactory ) DefaultPhpFileExtractor constructor.
afterTraverse ( array $nodes )
beforeTraverse ( array $nodes )
enterNode ( PhpParser\Node $node )
leaveNode ( PhpParser\Node $node )
setLogger ( Psr\Log\LoggerInterface $logger )
visitFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue )
visitPhpFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue, array $ast )
visitTwigFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue, Twig_Node $ast )

Private Methods

Method Description
getDocCommentForNode ( PhpParser\Node $node ) : null | string

Method Details

__construct() public method

DefaultPhpFileExtractor constructor.
public __construct ( DocParser $docParser, JMS\TranslationBundle\Translation\FileSourceFactory $fileSourceFactory )
$docParser Doctrine\Common\Annotations\DocParser
$fileSourceFactory JMS\TranslationBundle\Translation\FileSourceFactory

afterTraverse() public method

public afterTraverse ( array $nodes )
$nodes array

beforeTraverse() public method

public beforeTraverse ( array $nodes )
$nodes array

enterNode() public method

public enterNode ( PhpParser\Node $node )
$node PhpParser\Node

leaveNode() public method

public leaveNode ( PhpParser\Node $node )
$node PhpParser\Node

setLogger() public method

public setLogger ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface

visitFile() public method

public visitFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue )
$file SplFileInfo
$catalogue JMS\TranslationBundle\Model\MessageCatalogue

visitPhpFile() public method

public visitPhpFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue, array $ast )
$file SplFileInfo
$catalogue JMS\TranslationBundle\Model\MessageCatalogue
$ast array

visitTwigFile() public method

public visitTwigFile ( SplFileInfo $file, JMS\TranslationBundle\Model\MessageCatalogue $catalogue, Twig_Node $ast )
$file SplFileInfo
$catalogue JMS\TranslationBundle\Model\MessageCatalogue
$ast Twig_Node

Property Details

$classToExtractFrom protected_oe property

Methods and "domain" parameter offset to extract from PHP code.
protected $classToExtractFrom

$defaultDomain protected_oe property

protected string $defaultDomain
return string