mirror of
https://github.com/cosmocode/dokuwiki-plugin-struct.git
synced 2025-07-29 11:59:24 +00:00

This introduces a addDynamicFilter() method. We need to handle fixed and dynamic filters separately for proper parentheises. The latter is not implemented yet and will follow next. Tests still broken
28 lines
606 B
PHP
28 lines
606 B
PHP
<?php
|
|
|
|
namespace dokuwiki\plugin\struct\test\mock;
|
|
|
|
use dokuwiki\plugin\struct\meta;
|
|
|
|
class Search extends meta\Search
|
|
{
|
|
public $schemas = array();
|
|
/** @var meta\Column[] */
|
|
public $columns = array();
|
|
|
|
public $sortby = array();
|
|
|
|
public $filter = array();
|
|
|
|
public $dynamicFilter = array();
|
|
|
|
/**
|
|
* Register a dummy function that always returns false
|
|
*/
|
|
public function isNotPublisher()
|
|
{
|
|
$this->dbHelper = new helper_plugin_struct_db;
|
|
$this->sqlite->getPdo()->sqliteCreateFunction('IS_PUBLISHER', [$this->dbHelper, 'IS_PUBLISHER'], -1);
|
|
}
|
|
}
|