Overview

Namespaces

  • Jity
    • TagGeneratorBundle
      • DependencyInjection
      • Entity
      • Filter
      • Formater
      • Splitter
      • Tests
        • Filter
        • Fixture
        • Formater
        • Splitter

Classes

  • AbstractFilter
  • Camelcase
  • Capitalized
  • Dictionary
  • Length
  • Lowercase
  • Occurrence
  • Regex
  • Score
  • ScoreGroup
  • Uppercase

Interfaces

  • FilterInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class Dictionary

Dictionary

Score or remove tags which match (or not) the specified dictionaries. This filter requires special options.

array(
    'match'         => true,  // Tags should match or match not dicts
    'casesensitive' => false, // Match case-(in)sensitive
    'dictionaries'  => array( // Specify dictionaries
        'german'    => array( // Language => concrete dictionaries
            'adjektive',
            'verben',
            'klein',
            'fixwords'
        )
    )
)
Jity\TagGeneratorBundle\Filter\AbstractFilter implements Jity\TagGeneratorBundle\Filter\FilterInterface
Extended by Jity\TagGeneratorBundle\Filter\Dictionary
Namespace: Jity\TagGeneratorBundle\Filter
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: Jity\TagGeneratorBundle\Filter\AbstractFilter
Located at Filter/Dictionary.php
Methods summary
public
# __construct( integer $factor = 2, mixed $remove = false, array $options = array() )

__construct

__construct

Initializes a the filter.

Parameters

$factor
integer
$factor Score multiplier factor
$remove
mixed
$remove Remove non-matching tags from collection
$options
array
$options Specific configuration for the filter

Overrides

Jity\TagGeneratorBundle\Filter\AbstractFilter::__construct()
public
# configure( )

configure

configure

Setup the filter by processing the specified options.

public Jity\TagGeneratorBundle\Entity\TagCollection
# process( Jity\TagGeneratorBundle\Entity\TagCollection $collection )

process

process

Run filter logic over given TagCollection.

Parameters

$collection
Jity\TagGeneratorBundle\Entity\TagCollection
$collection TagCollection to process

Returns

Jity\TagGeneratorBundle\Entity\TagCollection
Properties inherited from Jity\TagGeneratorBundle\Filter\AbstractFilter
$factor, $options, $remove
API documentation generated by ApiGen 2.8.0