xref: /plugin/struct/_test/mock/Search.php (revision 1057ed145ebe196623f851365e7cea64a25415b6)
125029fe8SAndreas Gohr<?php
225029fe8SAndreas Gohr
3ba766201SAndreas Gohrnamespace dokuwiki\plugin\struct\test\mock;
425029fe8SAndreas Gohr
50549dcc5SAndreas Gohruse dokuwiki\plugin\struct\meta;
625029fe8SAndreas Gohr
70549dcc5SAndreas Gohrclass Search extends meta\Search
80549dcc5SAndreas Gohr{
925029fe8SAndreas Gohr    public $schemas = array();
1025029fe8SAndreas Gohr    /** @var  meta\Column[] */
1125029fe8SAndreas Gohr    public $columns = array();
1225029fe8SAndreas Gohr
1325029fe8SAndreas Gohr    public $sortby = array();
145bc0a238SMichael Große
155bc0a238SMichael Große    public $filter = array();
16bb8d98c4SAnna Dabrowska
17*1057ed14SAndreas Gohr    public $dynamicFilter = array();
18*1057ed14SAndreas Gohr
19bb8d98c4SAnna Dabrowska    /**
20bb8d98c4SAnna Dabrowska     * Register a dummy function that always returns false
21bb8d98c4SAnna Dabrowska     */
22bb8d98c4SAnna Dabrowska    public function isNotPublisher()
23bb8d98c4SAnna Dabrowska    {
24bb8d98c4SAnna Dabrowska        $this->dbHelper = new helper_plugin_struct_db;
254183cc11SAndreas Gohr        $this->sqlite->getPdo()->sqliteCreateFunction('IS_PUBLISHER', [$this->dbHelper, 'IS_PUBLISHER'], -1);
26bb8d98c4SAnna Dabrowska    }
2725029fe8SAndreas Gohr}
28