/home/pttours/live-new/releases/20260618094344/buxus/application/models/App/FacetedSearch/Property/SelectNew.php
//https://issues.apache.org/jira/browse/SOLR-7495
$this->solr_type = SolrFSFieldType::FIELD_TYPE_STRING;
if (config('pttours.cache_fs_values')) {
$this->setValues(
(new CachedValueList($property_tag, 15, function() {
return $this->selectAllValues();
}))->getValues()
);
}
else {
$this->setValues($this->selectAllValues());
}
$this->setExclusiveMode();
}
public function applyFacetToQuery(FacetSet $facetSet, SolrFSConnection $connection)
{
$facet = $this->applyFacetToQyeryBasic($facetSet, $connection);
$facet->setLimit(9999);
if ($this->mode == self::EXCLUSIVE_MODE || $this->mode == self::OR_MODE) {
$facet->addExclude($this->getTag() . '_filter');
}
}
public function setDefaultValue($value)
{
$this->default_value = $value;
}
public function setShowSearch($val = true)
{
$this->show_search = $val;
}
public function getDefaultValue()
{
return $this->default_value;
}
Arguments
"Call to undefined method App\FacetedSearch\Property\RegionNewNew::applyFacetToQyeryBasic()"
/home/pttours/live-new/releases/20260618094344/buxus/application/models/App/FacetedSearch/PTSolrFsSearch.php
$facetSet = $query->getFacetSet();
foreach ($this->properties as $property) {
if (!$property instanceof SolrAwareFSProperty) {
continue;
}
if (!$property->shouldBeFaceted()) {
continue;
}
$disable_facet = [
'page_id',
PttourDatePoints::TAG
];
if (in_array($property->getTag(),$disable_facet)) {
continue;
}
$property->applyFacetToQuery($facetSet, $connection);
}
}
public function search()
{
$connection = $this->getSolrConnection();
$query = $this->basicQuery(); /* @var $query Query */
$query->setFields(['entity_id']);
$this->applyFacetsToQuery($query);
if (is_array($this->properties)) {
foreach ($this->properties as $property) {
if ($property instanceof SolrAwareFSProperty) {
$property->processSolrQuery($query, $connection);
}
}
}
/home/pttours/live-new/releases/20260618094344/buxus/application/models/App/FacetedSearch/PTSolrFsSearch.php
$disable_facet = [
'page_id',
PttourDatePoints::TAG
];
if (in_array($property->getTag(),$disable_facet)) {
continue;
}
$property->applyFacetToQuery($facetSet, $connection);
}
}
public function search()
{
$connection = $this->getSolrConnection();
$query = $this->basicQuery(); /* @var $query Query */
$query->setFields(['entity_id']);
$this->applyFacetsToQuery($query);
if (is_array($this->properties)) {
foreach ($this->properties as $property) {
if ($property instanceof SolrAwareFSProperty) {
$property->processSolrQuery($query, $connection);
}
}
}
$use_paged_search = true;
if ($this->getSortBy()) {
$sort_property = $this->getSortBy();
if (method_exists($sort_property, 'processSolrOrderBy')) {
$sort_property->processSolrOrderBy($query, $connection);
}
$custom_result_id_order = $sort_property->getCustomResultIdOrder();
if (is_array($custom_result_id_order)) {
$use_paged_search = false;
}
/home/pttours/live-new/releases/20260618094344/buxus/application/controllers/ProductCatalogController.php
}
/**
*
*/
public function dynamicProductListAction()
{
$this->setPage();
//comment this line to use database FS
\FS\Facades\FSInstanceResolver::setTag('fsi_solr_terms');
$fs = \FS\Facades\FSInstanceResolver::getChecked(); /* @var $fs \App\FacetedSearch\PTDatabaseFsSearch */
$manager = new \App\DynamicCategory\PTDynamicList($this->view->page);
\FS\Facades\FSManager::process($fs, $this->view->page, $manager);
$fs->processRequest($this->_request);
$this->view->data = $fs->search();
$subPages = \Buxus\TemplateFunctions::getChildren($this->view->page->getId(), 1);
$list = new \App\ListBase();
$list->addItems($subPages);
$this->view->subpages = $list;
//when dynamic category is created for Strava (food), we need to set up FS property to display correct prices
//tried to apply in MultiFsProperty.php buildSolrQuery() method, but it kinda does not work...
$data = json_decode($this->view->page->getValue(\Buxus\Util\PropertyTag::QUERY_TAG()),true);
if (is_array($data['children'])) {
foreach ($data['children'] as $item) {
if ($item['type'] == 'strava' && ($item['data']['val']['0']) == 1) {
$strava_filter['1'] = '1';
$fs->getProperty('strava')->setFilters($strava_filter);
}
}
}
// ak som na zajazde a termine, moja canonical url je ta zajazdu
$this_url = CreateUrlForPage(GetProperty('page_id'), '', '');
/home/pttours/live-new/releases/20260618094344/vendor/illuminate/container/BoundMethod.php
class BoundMethod
{
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, static::getMethodDependencies($container, $callback, $parameters)
);
});
}
/**
* Call a string reference to a class using Class@method syntax.
*
* @param \Illuminate\Container\Container $container
* @param string $target
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*
* @throws \InvalidArgumentException
*/
protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
{
$segments = explode('@', $target);
// We will assume an @ sign is used to delimit the class name from the method
/home/pttours/live-new/releases/20260618094344/vendor/illuminate/container/BoundMethod.php
class BoundMethod
{
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, static::getMethodDependencies($container, $callback, $parameters)
);
});
}
/**
* Call a string reference to a class using Class@method syntax.
*
* @param \Illuminate\Container\Container $container
* @param string $target
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*
* @throws \InvalidArgumentException
*/
protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
{
$segments = explode('@', $target);
// We will assume an @ sign is used to delimit the class name from the method
/home/pttours/live-new/releases/20260618094344/vendor/illuminate/container/BoundMethod.php
* @param callable $callback
* @param mixed $default
* @return mixed
*/
protected static function callBoundMethod($container, $callback, $default)
{
if (! is_array($callback)) {
return $default instanceof Closure ? $default() : $default;
}
// Here we need to turn the array callable into a Class@method string we can use to
// examine the container and see if there are any method bindings for this given
// method. If there are, we can call this method binding callback immediately.
$method = static::normalizeMethod($callback);
if ($container->hasMethodBinding($method)) {
return $container->callMethodBinding($method, $callback[0]);
}
return $default instanceof Closure ? $default() : $default;
}
/**
* Normalize the given callback into a Class@method string.
*
* @param callable $callback
* @return string
*/
protected static function normalizeMethod($callback)
{
$class = is_string($callback[0]) ? $callback[0] : get_class($callback[0]);
return "{$class}@{$callback[1]}";
}
/**
* Get all dependencies for a given method.
*
* @param \Illuminate\Container\Container
* @param callable|string $callback
/home/pttours/live-new/releases/20260618094344/vendor/illuminate/container/BoundMethod.php
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param \Illuminate\Container\Container $container
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
{
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return call_user_func_array(
$callback, static::getMethodDependencies($container, $callback, $parameters)
);
});
}
/**
* Call a string reference to a class using Class@method syntax.
*
* @param \Illuminate\Container\Container $container
* @param string $target
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*
* @throws \InvalidArgumentException
*/
protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
{
$segments = explode('@', $target);
// We will assume an @ sign is used to delimit the class name from the method
// name. We will split on this @ sign and then build a callable array that
// we can pass right back into the "call" method for dependency binding.
/home/pttours/live-new/releases/20260618094344/vendor/illuminate/container/Container.php
* @return \Closure
*/
public function wrap(Closure $callback, array $parameters = [])
{
return function () use ($callback, $parameters) {
return $this->call($callback, $parameters);
};
}
/**
* Call the given Closure / class@method and inject its dependencies.
*
* @param callable|string $callback
* @param array $parameters
* @param string|null $defaultMethod
* @return mixed
*/
public function call($callback, array $parameters = [], $defaultMethod = null)
{
return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
}
/**
* Get a closure to resolve the given type from the container.
*
* @param string $abstract
* @return \Closure
*/
public function factory($abstract)
{
return function () use ($abstract) {
return $this->make($abstract);
};
}
/**
* Resolve the given type with the given parameter overrides.
*
* @param string $abstract
* @param array $parameters
/home/pttours/live-new/releases/20260618094344/vendor/buxus/legacy-base/src/Buxus/Controller.php
{
// Notify helpers of action preDispatch state
$this->_helper->notifyPreDispatch();
$this->preDispatch();
if ($this->getRequest()->isDispatched()) {
if (null === $this->_classMethods) {
$this->_classMethods = get_class_methods($this);
}
// If pre-dispatch hooks introduced a redirect then stop dispatch
// @see ZF-7496
if (!($this->getResponse()->isRedirect())) {
// preDispatch() didn't change the action, so we can continue
if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
if ($this->getInvokeArg('useCaseSensitiveActions')) {
trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
}
app()->call(array($this, $action));
} else {
$this->__call($action, array());
}
}
$this->postDispatch();
}
// whats actually important here is that this action controller is
// shutting down, regardless of dispatching; notify the helpers of this
// state
$this->_helper->notifyPostDispatch();
}
}
/home/pttours/live-new/releases/20260618094344/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php
/**
* Retrieve the action name
*/
$action = $this->getActionMethod($request);
/**
* Dispatch the method call
*/
$request->setDispatched(true);
// by default, buffer output
$disableOb = $this->getParam('disableOutputBuffering');
$obLevel = ob_get_level();
if (empty($disableOb)) {
ob_start();
}
try {
$controller->dispatch($action);
} catch (Exception $e) {
// Clean output buffer on error
$curObLevel = ob_get_level();
if ($curObLevel > $obLevel) {
do {
ob_get_clean();
$curObLevel = ob_get_level();
} while ($curObLevel > $obLevel);
}
throw $e;
}
if (empty($disableOb)) {
$content = ob_get_clean();
$response->appendBody($content);
}
// Destroy the page controller instance and reflection objects
$controller = null;
}
/home/pttours/live-new/releases/20260618094344/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php
do {
$this->_request->setDispatched(true);
/**
* Notify plugins of dispatch startup
*/
$this->_plugins->preDispatch($this->_request);
/**
* Skip requested action if preDispatch() has reset it
*/
if (!$this->_request->isDispatched()) {
continue;
}
/**
* Dispatch request
*/
try {
$dispatcher->dispatch($this->_request, $this->_response);
} catch (Exception $e) {
if ($this->throwExceptions()) {
throw $e;
}
$this->_response->setException($e);
}
/**
* Notify plugins of dispatch completion
*/
$this->_plugins->postDispatch($this->_request);
} while (!$this->_request->isDispatched());
} catch (Exception $e) {
if ($this->throwExceptions()) {
throw $e;
}
$this->_response->setException($e);
}
/home/pttours/live-new/releases/20260618094344/vendor/buxus/legacy-base/buxus/includes/generate_functions.php
// Set router
$front->setRouter(new ControllerRouter());
// Set controller and action
$request = new Zend_Controller_Request_Http();
$request->setControllerName($controller_name);
$request->setActionName($controller_action);
\Buxus\Event\BuxusEvent::fire(new \Buxus\Event\MvcStartedEvent());
// add registered view helpers
//$view = \Zend_Layout::getMvcInstance()->getView();
/* $module_view_helper_paths = \Buxus\Module\BuxusModule::helperPaths();
foreach ($module_view_helper_paths as $helper_path) {
$view->addHelperPath($helper_path['path'], $helper_path['prefix']);
}*/
$front->dispatch($request);
}
}
function CreateUrlForPageName ($page_name, $url_parameter="", $quotes = "'")
{
global $as_static;
$page_dsc = BuxusDB::get()->fetchAll("SELECT tblPages.page_id FROM tblPages WHERE tblPages.page_name = :page_name", array(':page_name' => $page_name));
$i = 0;
foreach($page_dsc as $page_row)
{
$page_id = $page_row["page_id"];
$i++;
}
if ($i>1)
//echo "What now? There are more than one unique page with given name.";
if ($i == 0) { $page_id = 0; }
if ($as_static != '')
return ($quotes.GetSystemOption("C_static_url_prefix")."page_$page_id.htm".$url_parameter.$quotes);
else
return ($quotes.config('buxus_core.base_url')."generate_page.php?page_id=$page_id".$url_parameter.$quotes);
/home/pttours/live-new/releases/20260618094344/vendor/buxus/core/src/handler/generate_page.php
$page_name = (isset($_GET['page_name']) ? $_GET['page_name'] : '');
if (!empty($page_name)) {
//funckia skonci, ak nenajde, alebo najde viac
$page_id = GetPageIdByPageName($page_name);
} else {
if (!showCustomError('404')) {
header('HTTP/1.0 404 Not Found');
echo 'Wrong page ID specified.';
}
exit;
}
} else {
$wrong_page_id = C_True;
}
$_REQUEST['page_id'] = $page_id;
$_GET['page_id'] = $page_id;
GeneratePage($page_id);
\Buxus\Event\BuxusEvent::fire(new \Buxus\Event\FrontendRequestFinishedEvent());
exit;
/home/pttours/live-new/releases/20260618094344/vendor/buxus/core/src/Buxus/Router/BuxusRouter.php
echo '<html><head><title>maintenance</title></head><body>This BUXUS application is undergoing maintenance. Please try again later</body></html>';
} else {
include $template_path;
}
}
public function dispatch($request_uri) {
if ($this->app->isDownForMaintenance()) {
$this->display503();
exit;
}
$script = $this->getScript($request_uri);
foreach ($this->auto_scripts as $auto_script) {
include($auto_script);
}
if (!empty($script)) {
include($script);
}
if ($this->default_script != $script) {
include($this->default_script);
}
header('HTTP/1.0 404 Not Found');
echo '404 Not Found';
exit;
}
}
Arguments
"/home/pttours/live-new/releases/20260618094344/vendor/buxus/core/src/handler/generate_page.php"
/home/pttours/live-new/releases/20260618094344/public/buxus.php
<?php
define('BASE_BUXUS_DIR', realpath(__DIR__ . '/../'));
require_once __DIR__ . '/../vendor/autoload.php';
require_once CORE_BUXUS_DIR . '/src/buxus_bootstrap.php';
$router = app('buxus-router');
$router->dispatch($_SERVER['REQUEST_URI']);