syntax error, unexpected '$this' (T_VARIABLE)
/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/Modules/Search/Models/SearchIndexModel.php
Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
127128 WHERE (MATCH(data_1,data_2,data_3,data_4,data_5) AGAINST (### IN BOOLEAN MODE))129 AND (';130 if (empty($where['language']) === false) {131 $sql .= '`language` = '.$where['language'].' OR ';132 }133 $sql .= '`language` IS null) ';134135 if (empty($where['target']) === false) {136 $sql .= ' AND `type` IN ("'.implode('","', $where['target']).'")';137 }138139 $sql .= ' ORDER BY relevance DESC, `object_date` DESC140141 LIMIT '.implode(',', $limit);142143 $sql = str_replace('###', '\''.$this->db->escape($search).'\'', $sql);144 $sql = str_replace('**\'', '*\'', $sql);145 z146 $this->result = $this->db->query($sql, true);147148 return clone $this;149 }150151152 protected function normalize($text)153 {154 $stopWords = array(155 'a\'s', 'able', 'about', 'above', 'according', 'accordingly', 'across',156 'actually', 'after', 'afterwards', 'again', 'against', 'ain\'t', 'all', 'allow',
6 {7 private $services;89 private $class;1011 private $deps = array();1213 private $properties = array();1415 public function __construct(\Onion\DI\Container $services, $class, $deps = array(), $properties = array())16 {17 $this->services = $services;18 $this->class = $class;19 $this->deps = $deps;20 $this->properties = $properties;21 }2223 public function create()24 {25 $rc = new \ReflectionClass($this->class);2627 $deps = func_get_args();28 if (empty($deps) === true) {29 $deps = $this->deps;30 } else {31 $_deps = array_reverse((array) $this->deps);32 foreach ($_deps as $dep) {33 array_unshift($deps, $dep);34 }35 }
array ( 0 => '\\onionCMS\\Modules\\Search\\Models\\SearchIndexModel', )
69 }707172 public function getService($name, $deps = null)73 {74 if (substr($name, 0, 8) === 'factory@') {75 $name = substr($name, 8);76 return $this->factory[$name];77 }7879 if (isset($this->objects[$name]) === false) {80 throw new \InvalidArgumentException('Service "'.$name.'" is not registered!');81 }8283 if (is_array($deps) === true) {84 return call_user_func_array(array($this->factory[$name], 'create'), $deps);85 }8687 if ($this->objects[$name] instanceof \Onion\DI\Factory) {88 $this->objects[$name] = $this->objects[$name]->create();89 }9091 return $this->objects[$name];92 }939495 public function serviceExists($name)96 {97 return isset($this->objects[$name]);98 }
array ( )
84 return call_user_func_array(array($this->factory[$name], 'create'), $deps);85 }8687 if ($this->objects[$name] instanceof \Onion\DI\Factory) {88 $this->objects[$name] = $this->objects[$name]->create();89 }9091 return $this->objects[$name];92 }939495 public function serviceExists($name)96 {97 return isset($this->objects[$name]);98 }99100101 public function __get($name)102 {103 return $this->getService($name);104 }105 }
array ( 0 => 'searchIndexModel', )
26 $searchTargets = $allTargets;2728 } else {29 $searchTargets = array_keys($searchTargets);30 }3132 $this->view['searchTargets'] = $searchTargets;33 $this->view['allSearchTargets'] = $allTargets;3435 if (empty($term) === true) {36 $this->app->addFlash(__('Nezadali ste žiadny výraz pre vyhľadávanie.'), 'error', 'current');37 return;38 }3940 $where = array();41 $where['term'] = $term;42 $where['language'] = $this->services->onionCMS->language['id'];43 $where['target'] = $searchTargets;4445 $resultCount = $this->services->searchIndexModel->count($where);4647 $paginator = $this->services->paginator;48 $paginator->totalItems = $resultCount;49 $paginator->currentPage = $pageNumber;50 $paginator->pageSize = 10;51 $paginator->parameterName = 'pageNumber';52 $paginator->route = $this->app->currentRoute;5354 $this->view['paginator'] = $paginator;55
array ( 0 => 'searchIndexModel', )
151152 if ($this->actionName === null) {153 $this->actionName = $this->currentRoute->action;154 }155 preg_match('/([A-Za-z0-9]+)Controller/', $this->controllerName, $match);156 if (isset($match[1]) === true) {157 $view->setTemplate(APP_DIR . '/Templates/' . $match[1] . '.html');158 }159160 $this->controller = new $this->controllerName($this->container);161162 $parameters = $this->currentRoute->getResource();163164 $this->runHooks('system.hooks.afterCreateController');165166 call_user_func_array(array($this->controller, 'before'), $parameters);167168 $this->runHooks('system.hooks.beforeControllerRun');169170 call_user_func_array(array($this->controller, $this->actionName), $parameters);171172 $this->runHooks('system.hooks.afterControllerRun');173174 call_user_func_array(array($this->controller, 'after'), $parameters);175176 if (is_object($this->controller->view) === true) {177 $view['flash'] = $this->flash['current'];178179 $this->runHooks('system.hooks.beforeRenderView');180
array ( 0 => array ( 0 => 'object (onionCMS\\Modules\\Search\\Controllers\\SearchController)', 1 => 'show', ), 1 => array ( 'languageCode' => 'sk', 'pageUrl' => 'vyhladavanie', 'pageNumber' => '1', ), )
132 WWW_DIR.'/js/vendor/cookie.js',133 WWW_DIR.'/js/vendor/scroll-top.js',134 ),135 'less' => array(136 )137 ),138 'after' => array(139 'js' => array(140 WWW_DIR.'/js/main.js',141 ),142 'less' => array(143 WWW_DIR.'/less/main.less'144 )145 )146 )147 );148149 $app = new \Onion\Application($configuration);150151 $app->run();152 exit;
array ( )
13 // absolute filesystem path to the libraries14 define('LIBS_DIR', realpath(WWW_DIR.'/../vendor'));1516 // absolute filesystem path to the web root17 define('ONION_DIR', LIBS_DIR.'/Onion');1819 // absolute filesystem path to the application root20 define('APP_DIR', WWW_DIR.'/../app');2122 // absolute filesystem path to the temporary files23 define('TEMP_DIR', realpath(WWW_DIR.'/../temp'));2425 // absolute filesystem path to the cache26 define('CACHE_DIR', realpath(WWW_DIR.'/../cache'));2728 define('ONIONCMS_DIR', realpath(ONION_DIR.'/../onionCMS'));2930 // load bootstrap file31 if ($_SERVER["SERVER_ADDR"] === "127.0.0.1") {32 require ONIONCMS_DIR.'/bootstrap.dev.php';33 } else {34 require ONIONCMS_DIR.'/bootstrap.php';35 }
array ( 0 => '/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/bootstrap.dev.php', )
array ( 'REDIRECT_STATUS' => '200', 'HTTP_HOST' => 'www.atriumarchitekti.loc', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_REFERER' => 'http://www.atriumarchitekti.loc/sk/vyhladavanie/1?term=byt', 'HTTP_COOKIE' => 'consent_cookie=%7B%22preferences%22%3Atrue%2C%22statistics%22%3Atrue%2C%22marketing%22%3Atrue%2C%22functionality%22%3Atrue%7D; gtm_atrium=%7B%22security_storage%22%3A%22granted%22%2C%22functionality_storage%22%3A%22granted%22%2C%22personalization_storage%22%3A%22granted%22%2C%22analytics_storage%22%3A%22granted%22%2C%22ad_user_data%22%3A%22granted%22%2C%22ad_personalization%22%3A%22granted%22%2C%22ad_storage%22%3A%22granted%22%7D; qazfdrtygdfxsw=7b3q16iktlt6lasj8egvmop039flrtcpdt5hr95rt3q8v4q8dj8gc8s41rnaqnk142a7dd7sq23a27bprtrtdc410spck69asjgrdp1; language=sk; ws56trt87dfgxzaq=Q3hJekZlaG9uUVRRem9qYlcxRGJvK1V5eFRKMW9Vblc0M3BSekRTVUtRWGdGaGhYT0g0c3Y1b1pVNGlIN0ZGVzdjeXRqYjkvSjhLTlpEZHBuRVI4dlJLeUNEb1p1MXdzWjF3UElZeVM2b1VzUVBNcW91VTd5dnVJNDFQQjRrUndvK0pqYnZkSzFBeVBkdXNRTEV6T2NBNzVranFHNEVpRTdERTI0WGs2WnRQdDRSaGdmemtCb1ZINWhBMHpFUVVpUjZYNUw1WmZtOE5ZK3NoRVN1ZkpuSDVOUkxBaThEMlBBd2N4TDcwZE56MytlNzVTRmZuNXRvZXJGR3NJUzhzZytWY1hMS2labjlqZmt4MnBDRjg5NXc9PbSw7fK5zs2n3Dlg7Y4jmQ4%3D', 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1', 'HTTP_PRIORITY' => 'u=0, i', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.25 (Debian) Server at www.atriumarchitekti.loc Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.25 (Debian)', 'SERVER_NAME' => 'www.atriumarchitekti.loc', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '127.0.0.1', 'DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root', 'SERVER_ADMIN' => 'webmaster@localhost', 'SCRIPT_FILENAME' => '/mnt/devel/Atrium/atriumstudio/www_root/index.php', 'REMOTE_PORT' => '41248', 'REDIRECT_URL' => '/sk/vyhladavanie/1', 'REDIRECT_QUERY_STRING' => 'term=domm&send=&target%5Bpage%5D=on&target%5Bphoto%5D=on&target%5Bproject%5D=on&target%5Bnews%5D=on&target%5Bproduct%5D=on&target%5Barticle%5D=on', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'term=domm&send=&target%5Bpage%5D=on&target%5Bphoto%5D=on&target%5Bproject%5D=on&target%5Bnews%5D=on&target%5Bproduct%5D=on&target%5Barticle%5D=on', 'REQUEST_URI' => '/sk/vyhladavanie/1?term=domm&send=&target%5Bpage%5D=on&target%5Bphoto%5D=on&target%5Bproject%5D=on&target%5Bnews%5D=on&target%5Bproduct%5D=on&target%5Barticle%5D=on', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1729803343.8199999, 'REQUEST_TIME' => 1729803343, )
array ( 'term' => 'domm', 'send' => '', 'target' => array ( 'page' => 'on', 'photo' => 'on', 'project' => 'on', 'news' => 'on', 'product' => 'on', 'article' => 'on', ), )
array ( 'term' => 'domm', 'send' => '', 'target' => array ( 'page' => 'on', 'photo' => 'on', 'project' => 'on', 'news' => 'on', 'product' => 'on', 'article' => 'on', ), )