/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/QueryCompiler.php
toggle arguments
|
<?php */
|
|
<?php protected function _sqlCompiler(&$sql, $query, $generator)
|
|
<?php {
|
|
<?php return function ($parts, $name) use (&$sql, $query, $generator) {
|
|
<?php if (!count($parts)) {
|
|
<?php return;
|
|
<?php }
|
|
<?php if ($parts instanceof ExpressionInterface) {
|
|
<?php $parts = [$parts->sql($generator)];
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/Query.php
toggle arguments
|
<?php public function traverse(callable $visitor, array $parts = [])
|
|
<?php {
|
|
<?php $parts = $parts ?: array_keys($this->_parts);
|
|
<?php foreach ($parts as $name) {
|
|
<?php $visitor($this->_parts[$name], $name);
|
|
<?php }
|
|
<?php
|
|
<?php return $this;
|
|
<?php }
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/QueryCompiler.php
toggle arguments
|
<?php public function compile(Query $query, ValueBinder $generator)
|
|
<?php {
|
|
<?php $sql = '';
|
|
<?php $type = $query->type();
|
|
<?php $query->traverse(
|
|
<?php $this->_sqlCompiler($sql, $query, $generator),
|
|
<?php $this->{'_' . $type . 'Parts'}
|
|
<?php );
|
|
<?php
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/Driver.php
toggle arguments
|
<?php $processor = $this->newCompiler();
|
|
<?php $translator = $this->queryTranslator($query->type());
|
|
<?php $query = $translator($query);
|
|
<?php
|
|
<?php return [$query, $processor->compile($query, $generator)];
|
|
<?php }
|
|
<?php
|
|
<?php /**
|
|
<?php * Returns an instance of a QueryCompiler
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/Connection.php
toggle arguments
|
<?php * @return string
|
|
<?php */
|
|
<?php public function compileQuery(Query $query, ValueBinder $generator)
|
|
<?php {
|
|
<?php return $this->getDriver()->compileQuery($query, $generator)[1];
|
|
<?php }
|
|
<?php
|
|
<?php /**
|
|
<?php * Executes the provided query after compiling it for the specific driver
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/Query.php
toggle arguments
|
<?php $generator = $this->valueBinder();
|
|
<?php $generator->resetCount();
|
|
<?php }
|
|
<?php
|
|
<?php return $this->getConnection()->compileQuery($this, $generator);
|
|
<?php }
|
|
<?php
|
|
<?php /**
|
|
<?php * Will iterate over every specified part. Traversing functions can aggregate
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/ORM/Query.php
toggle arguments
|
<?php $this->triggerBeforeFind();
|
|
<?php
|
|
<?php $this->_transformQuery();
|
|
<?php
|
|
<?php return parent::sql($binder);
|
|
<?php }
|
|
<?php
|
|
<?php /**
|
|
<?php * Executes this query and returns a ResultSet object containing the results.
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/Driver/Sqlite.php
toggle arguments
|
<?php public function prepare($query)
|
|
<?php {
|
|
<?php $this->connect();
|
|
<?php $isObject = $query instanceof Query;
|
|
<?php $statement = $this->_connection->prepare($isObject ? $query->sql() : $query);
|
|
<?php $result = new SqliteStatement(new PDOStatement($statement, $this), $this);
|
|
<?php if ($isObject && $query->isBufferedResultsEnabled() === false) {
|
|
<?php $result->bufferResults(false);
|
|
<?php }
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/Connection.php
toggle arguments
|
<?php * @return \Cake\Database\StatementInterface
|
|
<?php */
|
|
<?php public function prepare($sql)
|
|
<?php {
|
|
<?php $statement = $this->_driver->prepare($sql);
|
|
<?php
|
|
<?php if ($this->_logQueries) {
|
|
<?php $statement = $this->_newLogger($statement);
|
|
<?php }
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/Connection.php
toggle arguments
|
<?php * @return \Cake\Database\StatementInterface executed statement
|
|
<?php */
|
|
<?php public function run(Query $query)
|
|
<?php {
|
|
<?php $statement = $this->prepare($query);
|
|
<?php $query->valueBinder()->attachTo($statement);
|
|
<?php $statement->execute();
|
|
<?php
|
|
<?php return $statement;
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Database/Query.php
toggle arguments
|
<?php * @return \Cake\Database\StatementInterface
|
|
<?php */
|
|
<?php public function execute()
|
|
<?php {
|
|
<?php $statement = $this->_connection->run($this);
|
|
<?php $driver = $this->_connection->driver();
|
|
<?php $typeMap = $this->getSelectTypeMap();
|
|
<?php
|
|
<?php if ($typeMap->toArray() && $this->_typeCastAttached === false) {
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/ORM/Query.php
toggle arguments
|
<?php
|
|
<?php return new $decorator($this->_results);
|
|
<?php }
|
|
<?php
|
|
<?php $statement = $this->getEagerLoader()->loadExternal($this, $this->execute());
|
|
<?php
|
|
<?php return new ResultSet($this, $statement);
|
|
<?php }
|
|
<?php
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php
toggle arguments
|
<?php if ($this->_cache) {
|
|
<?php $results = $this->_cache->fetch($this);
|
|
<?php }
|
|
<?php if (!isset($results)) {
|
|
<?php $results = $this->_decorateResults($this->_execute());
|
|
<?php if ($this->_cache) {
|
|
<?php $this->_cache->store($this, $results);
|
|
<?php }
|
|
<?php }
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/ORM/Query.php
toggle arguments
|
<?php 'You cannot call all() on a non-select query. Use execute() instead.'
|
|
<?php );
|
|
<?php }
|
|
<?php
|
|
<?php return $this->_all();
|
|
<?php }
|
|
<?php
|
|
<?php /**
|
|
<?php * Trigger the beforeFind event on the query's repository object.
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php
toggle arguments
|
<?php * @return array
|
|
<?php */
|
|
<?php public function toArray()
|
|
<?php {
|
|
<?php return $this->all()->toArray();
|
|
<?php }
|
|
<?php
|
|
<?php /**
|
|
<?php * Register a new MapReduce routine to be executed on top of the database results
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/debug_kit/src/Panel/HistoryPanel.php
toggle arguments
|
<?php $table = TableRegistry::get('DebugKit.Requests');
|
|
<?php $recent = $table->find('recent');
|
|
<?php
|
|
<?php return [
|
|
<?php 'requests' => $recent->toArray(),
|
|
<?php ];
|
|
<?php }
|
|
<?php
|
|
<?php /**
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/debug_kit/src/ToolbarService.php
toggle arguments
|
<?php
|
|
<?php foreach ($this->registry->loaded() as $name) {
|
|
<?php $panel = $this->registry->{$name};
|
|
<?php try {
|
|
<?php $content = serialize($panel->data());
|
|
<?php } catch (\Exception $e) {
|
|
<?php $content = serialize([
|
|
<?php 'error' => $e->getMessage(),
|
|
<?php ]);
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php
toggle arguments
|
<?php {
|
|
<?php $this->service->loadPanels();
|
|
<?php $this->service->initializePanels();
|
|
<?php $response = $next($request, $response);
|
|
<?php $row = $this->service->saveData($request, $response);
|
|
<?php if (!$row) {
|
|
<?php return $response;
|
|
<?php }
|
|
<?php
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
|
<?php $next = $this->middleware->get($this->index);
|
|
<?php if ($next) {
|
|
<?php $this->index++;
|
|
<?php
|
|
<?php return $next($request, $response, $this);
|
|
<?php }
|
|
<?php
|
|
<?php // End of the queue
|
|
<?php return $response;
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Http/Runner.php
toggle arguments
|
<?php {
|
|
<?php $this->middleware = $middleware;
|
|
<?php $this->index = 0;
|
|
<?php
|
|
<?php return $this->__invoke($request, $response);
|
|
<?php }
|
|
<?php
|
|
<?php /**
|
|
<?php * @param \Psr\Http\Message\ServerRequestInterface $request The server request
|
/home/dreamtravelyaari.com/public_html/admin/vendor/cakephp/cakephp/src/Http/Server.php
toggle arguments
|
<?php throw new RuntimeException('The application `middleware` method did not return a middleware queue.');
|
|
<?php }
|
|
<?php $this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]);
|
|
<?php $middleware->add($this->app);
|
|
<?php $response = $this->runner->run($middleware, $request, $response);
|
|
<?php
|
|
<?php if (!($response instanceof ResponseInterface)) {
|
|
<?php throw new RuntimeException(sprintf(
|
|
<?php 'Application did not create a response. Got "%s" instead.',
|
/home/dreamtravelyaari.com/public_html/admin/webroot/index.php
toggle arguments
|
<?php $server = new Server(new Application(dirname(__DIR__) . '/config'));
|
|
<?php
|
|
<?php // Run the request/response through the application
|
|
<?php // and emit the response.
|
|
<?php $server->emit($server->run());
|
|
<?php
|
Error in:
ROOT/vendor/cakephp/cakephp/src/Database/QueryCompiler.php, line 128
If you want to customize this error message, create
src/Template/Error/error500.ctp