mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Add tag filter. Move benchmark to another project
This commit is contained in:
@@ -79,6 +79,11 @@ class Fenom
|
||||
*/
|
||||
public $filters = array();
|
||||
|
||||
/**
|
||||
* @var callable[]
|
||||
*/
|
||||
public $tag_filters = array();
|
||||
|
||||
/**
|
||||
* @var callable[]
|
||||
*/
|
||||
@@ -349,6 +354,22 @@ class Fenom
|
||||
return $this->filters;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param callable $cbcd
|
||||
* @return self
|
||||
*/
|
||||
public function addTagFilter($cb)
|
||||
{
|
||||
$this->tag_filters[] = $cb;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
public function getTagFilters()
|
||||
{
|
||||
return $this->tag_filters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add modifier
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user