1<?php 2 3namespace dokuwiki\plugin\struct\test\mock; 4 5use dokuwiki\plugin\struct\meta; 6 7class Search extends meta\Search 8{ 9 public $schemas = array(); 10 /** @var meta\Column[] */ 11 public $columns = array(); 12 13 public $sortby = array(); 14 15 public $filter = array(); 16 17 public $dynamicFilter = array(); 18 19 /** 20 * Register a dummy function that always returns false 21 */ 22 public function isNotPublisher() 23 { 24 $this->dbHelper = new helper_plugin_struct_db; 25 $this->sqlite->getPdo()->sqliteCreateFunction('IS_PUBLISHER', [$this->dbHelper, 'IS_PUBLISHER'], -1); 26 } 27} 28