Undefined property: onionCMS\Modules\Core\Module::$name
/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/Core/Libs/Module.php
http://www.atriumarchitekti.loc/admin/search (POST)
Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
264265266 public function registerTexyHandlers($texyHandlers)267 {268 }269270271 public function registerFilters($view)272 {273 }274275276 public function getSearchTargets()277 {278 }279280281 public function __get($property)282 {283 return $this->$property;284 }285 }
264265266 public function registerTexyHandlers($texyHandlers)267 {268 }269270271 public function registerFilters($view)272 {273 }274275276 public function getSearchTargets()277 {278 }279280281 public function __get($property)282 {283 return $this->$property;284 }285 }
array ( 0 => 8, 1 => 'Undefined property: onionCMS\\Modules\\Core\\Module::$name', 2 => '/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/Core/Libs/Module.php', 3 => 283, 4 => array ( 'property' => 'name', ), )
77 public function indexUpdate()78 {79 $whereSearch = array();80 foreach ($this->services->configuration->getKeys() as $key) {81 if ($key['group'] === 'search_target' and empty($key['value']) === false) {82 $whereSearch[] = $key['module'];83 }84 }8586 $modules = $this->services->onionCMS->modules;878889 $this->services->db->query('TRUNCATE TABLE `search_index`');9091 $where = array();92 $where[] = array('show', true);93 $languages = $this->services->languageModel->fetchMultiple($where)->fetchAll();9495 foreach ($modules as $module) {96 var_dump($module->name); continue;97 if (in_array($module->moduleName, $whereSearch) === false) {98 continue;99 }100101 if (method_exists($module, 'updateSearchIndex') === true) {102 $module->updateSearchIndex($languages);103 }104 }105106 exit;
array ( 0 => 'name', )
372 }373374 $this->submitter = $button;375376 $arguments = array($this->getValues());377 if (count($button['on_click']) === 4) {378 $args = (array) array_pop($button['on_click']);379 $arguments = array_merge($arguments, $args);380 }381382 $onValidForm = true;383 if (count($button['on_click']) === 3) {384 $onValidForm = array_pop($button['on_click']);385 }386387 if (($this->isValid === true388 AND $onValidForm === true)389 OR $onValidForm === false) {390391 call_user_func_array($button['on_click'], $arguments);392 }393 }394 }395396 /**397 * Metóda na uloženie aktuálneho prvku do poľa s prvkami formulára398 * a vytvorenie nového prázdneho aktuálneho prvku399 *400 * @return void401 */
array ( 0 => array ( 0 => 'object (onionCMS\\Modules\\Search\\Controllers\\AdminSearchController)', 1 => 'indexUpdate', ), 1 => array ( 0 => array ( 'search_targets' => array ( 'page' => 'true', 'photo' => 'true', 'gallery' => 'false', 'folder' => 'false', 'file' => 'false', 'project' => 'true', 'news' => 'true', 'product' => 'true', 'article' => 'true', ), ), ), )
744 }745 }746747 if (\Onion\Utils\Validators::isEmpty($element['value']) === true748 AND $required === false749 AND $ruleName !== 'callback') {750751 $element['error'] = null;752 $validElement = true;753 }754755 if ($validElement === false) {756 $valid = false;757 }758 }759760 $this->isValid = $valid;761762 if ($this->isSubmitted() === true) {763 $this->onSubmit();764 }765766 return $valid;767 }768769 /**770 * Metóda na overenie hodnoty položky pomocou vlastnej funkcie771 *772 * @param array metóda na overenie773 * @param mixed hodnota na overenie
array ( )
512 if (count($keys) === 1) {513 $values[$element['name']] = $element['value'];514515 } else {516 $v = &$values;517 foreach ($keys as $key) {518 $v = &$v[$key];519 }520521 $v = $element['value'];522 }523 }524525 unset($values['token']);526 return $values;527 }528529 public function open($echo = true)530 {531 $this->validate();532533 $anchor = '';534 if ($this->anchor !== null) {535 $anchor = '#'.$this->anchor;536 }537538 $out = '<form action="'.$this->action.$anchor.'" method="'.$this->method.'"';539540 if (empty($this->class) === false) {541 $class = implode(' ', (array) $this->class);
array ( )
932 $js .= '},'."\n";933 }934935 $js = trim($js, ",\n")."\n";936 $js .= '],'."\n";937 }938939 $js = trim($js, ",\n");940 $js .= '}'."\n";941 $js .= '});'."\n";942 $js .= '});'."\n";943944 return $js;945 }946947 public function getArrayCopy()948 {949 $array = array();950951 $array['open'] = $this->open(false);952 $array['close'] = $this->close(false);953 $array['buttons'] = $this->buttons;954955 $elements = array();956 $fieldsets = array();957 $hidden = array();958959 foreach ($this->elements as $element) {960 $attributes = array();961 if (isset($element['attributes']) === true) {
array ( 0 => 'false', )
35 'on_click' => array($this, 'save'),36 'class' => 'noajax'37 ));3839 $form->addButton(array(40 'name' => 'saveClose',41 'value' => 'Uložiť a koniec',42 'type' => 'submit',43 'on_click' => array($this, 'saveClose')44 ));4546 $form->addButton(array(47 'name' => 'close',48 'value' => 'Koniec',49 'type' => 'submit',50 'on_click' => array($this, 'close', false)51 ));5253 $this->view['title'] = 'Vyhľadávanie';54 $this->view['form'] = $form->getArrayCopy();55 }565758 public function save($formData)59 {60 $configuration = $this->services->configuration;61 foreach ($configuration->getKeys() as $key) {62 if ($key['group'] === 'search_target') {63 $value = $formData['search_targets'][$key['key']];64
array ( )
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\\AdminSearchController)', 1 => 'panel', ), 1 => array ( ), )
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_REFERER' => 'http://www.atriumarchitekti.loc/admin/search', 'CONTENT_TYPE' => 'application/x-www-form-urlencoded', 'CONTENT_LENGTH' => '230', 'HTTP_ORIGIN' => 'http://www.atriumarchitekti.loc', 'HTTP_CONNECTION' => 'keep-alive', '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=YmF1aUJ6d3VLd2dKTjkxQU5uaFo2bGNlR0RuZllGOUpnbEtoVU8vTlh6VXA0RnQ0UTczbFNKTGF4eEt4OUpsdmlyUWtaM1lmM0dGSWVLTDVZSlVtL3FuQnpWWFRPeWhNc0RJTTJBTURuRHRlbzl5NlAvbzdPck9yamdNUDFGUVZBSHl4bitBaTduNnJTTUozMWJBSjlqTGZrNzBxem1ZS2dCaGlLUGtyOHBvWVkwM1drMVBHbTk1dWh3R2h1UlRSMXRhQVkva256L201ZlJLVUduYk9HaDJUMXN5L1lIdDgyQmxGRGl0R3pacGtHeSt2U1JjWWRSRXZ1ajJ3OGtQalhDY0YyVDVVM2dzNGdBd0h6eGVGU0E9PWwD0luexplUnMNwzZFb2H4%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' => '52938', 'REDIRECT_URL' => '/admin/search', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'POST', 'QUERY_STRING' => '', 'REQUEST_URI' => '/admin/search', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1729800261.1849999, 'REQUEST_TIME' => 1729800261, )
array ( 'search_targets' => array ( 'page' => 'on', 'photo' => 'on', 'project' => 'on', 'news' => 'on', 'product' => 'on', 'article' => 'on', ), 'token' => '6977430cea1d404f42646454ab78ced4', 'index-update' => '', )
array ( )