/var
/www
/vhosts
/arche-menden.de
/httpdocs
/module
/Site
/src
/Site
/Model
/EventIssuesTable.php
});
foreach ($resultSet as $row) {
array_push($entries, $row);
}
return $entries;
}
public function getEntryByUrl($url)
{
$entries=array();
$resultSet = $this->select(function (Select $select) use ($url) {
$select->where(array('url'=>$url));
});
foreach ($resultSet as $row) {
array_push($entries, $row);
}
return $entries[0];
}
public function getEntryById($id)
{
$entries=array();
$resultSet = $this->select(function (Select $select) use ($id) {
$select->where(array('id'=>$id));
});
foreach ($resultSet as $row) {
array_push($entries, $row);
}
if(count($entries)>0)
{
return $entries[0];
} else {
return null;
}
}
Arguments
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/module
/Site
/src
/Site
/Model
/EventIssuesTable.php
});
foreach ($resultSet as $row) {
array_push($entries, $row);
}
return $entries;
}
public function getEntryByUrl($url)
{
$entries=array();
$resultSet = $this->select(function (Select $select) use ($url) {
$select->where(array('url'=>$url));
});
foreach ($resultSet as $row) {
array_push($entries, $row);
}
return $entries[0];
}
public function getEntryById($id)
{
$entries=array();
$resultSet = $this->select(function (Select $select) use ($id) {
$select->where(array('id'=>$id));
});
foreach ($resultSet as $row) {
array_push($entries, $row);
}
if(count($entries)>0)
{
return $entries[0];
} else {
return null;
}
}
Arguments
8
"Undefined offset: 0"
"/var/www/vhosts/arche-menden.de/httpdocs/module/Site/src/Site/Model/EventIssuesTable.php"
43
array:3 [
"url" => "bne-modul-lebensraeume-beim-hochwasserschutz"
"entries" => []
"resultSet" => ResultSet {#566}
]
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/module
/Site
/src
/Site
/Controller
/EventController.php
} else {
$issues[$i]['image']='nopic.jpg';
}
$i++;
}
return new ViewModel(
array(
'category' => $cat,
'issues' => $issues
)
);
}
public function kursAction()
{
$url=$this->params('url');
$issue=$this->getEventIssuesTable()->getEntryByUrl($url);
$catId=$issue['category'];
$category=$this->getEventCategoriesTable()->getEntryById($catId);
$issue['category_title']=$category['title'];
$issue['category_url']=$category['url'];
$issue['dates']=$this->getEventDatesTable()->getEntriesByIssue($issue['id']);
$path=__DIR__.'/../../../../../public/images/arche/event/';
$image=$issue['url'].'.jpg';
if(file_exists($path.$image))
{
$issue['image']=$image;
} else {
$issue['image']='nopic.jpg';
}
return new ViewModel(
array(
'issue' => $issue
Arguments
"bne-modul-lebensraeume-beim-hochwasserschutz"
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-mvc
/src
/Controller
/AbstractActionController.php
*/
public function onDispatch(MvcEvent $e)
{
$routeMatch = $e->getRouteMatch();
if (!$routeMatch) {
/**
* @todo Determine requirements for when route match is missing.
* Potentially allow pulling directly from request metadata?
*/
throw new Exception\DomainException('Missing route matches; unsure how to retrieve action');
}
$action = $routeMatch->getParam('action', 'not-found');
$method = static::getMethodFromAction($action);
if (!method_exists($this, $method)) {
$method = 'notFoundAction';
}
$actionResponse = $this->$method();
$e->setResult($actionResponse);
return $actionResponse;
}
/**
* @deprecated please use the {@see \Zend\Mvc\Controller\Plugin\CreateHttpNotFoundModel} plugin instead: this
* method will be removed in release 2.5 or later.
*
* {@inheritDoc}
*/
protected function createHttpNotFoundModel(HttpResponse $response)
{
return $this->__call('createHttpNotFoundModel', [$response]);
}
/**
* @deprecated please use the {@see \Zend\Mvc\Controller\Plugin\CreateConsoleNotFoundModel} plugin instead: this
* method will be removed in release 2.5 or later.
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-eventmanager
/src
/EventManager.php
$wildcardListeners = $this->getListeners('*');
if (count($sharedListeners) || count($sharedWildcardListeners) || count($wildcardListeners)) {
$listeners = clone $listeners;
// Shared listeners on this specific event
$this->insertListeners($listeners, $sharedListeners);
// Shared wildcard listeners
$this->insertListeners($listeners, $sharedWildcardListeners);
// Add wildcard listeners
$this->insertListeners($listeners, $wildcardListeners);
}
foreach ($listeners as $listener) {
$listenerCallback = $listener->getCallback();
// Trigger the listener's callback, and push its result onto the
// response collection
$responses->push(call_user_func($listenerCallback, $e));
// If the event was asked to stop propagating, do so
if ($e->propagationIsStopped()) {
$responses->setStopped(true);
break;
}
// If the result causes our validation callback to return true,
// stop propagation
if ($callback && call_user_func($callback, $responses->last())) {
$responses->setStopped(true);
break;
}
}
return $responses;
}
/**
* Get list of all listeners attached to the shared event manager for
Arguments
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-eventmanager
/src
/EventManager.php
$wildcardListeners = $this->getListeners('*');
if (count($sharedListeners) || count($sharedWildcardListeners) || count($wildcardListeners)) {
$listeners = clone $listeners;
// Shared listeners on this specific event
$this->insertListeners($listeners, $sharedListeners);
// Shared wildcard listeners
$this->insertListeners($listeners, $sharedWildcardListeners);
// Add wildcard listeners
$this->insertListeners($listeners, $wildcardListeners);
}
foreach ($listeners as $listener) {
$listenerCallback = $listener->getCallback();
// Trigger the listener's callback, and push its result onto the
// response collection
$responses->push(call_user_func($listenerCallback, $e));
// If the event was asked to stop propagating, do so
if ($e->propagationIsStopped()) {
$responses->setStopped(true);
break;
}
// If the result causes our validation callback to return true,
// stop propagation
if ($callback && call_user_func($callback, $responses->last())) {
$responses->setStopped(true);
break;
}
}
return $responses;
}
/**
* Get list of all listeners attached to the shared event manager for
Arguments
array:2 [
0 => EventController {#541}
1 => "onDispatch"
]
MvcEvent {#203}
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-eventmanager
/src
/EventManager.php
* Trigger an event instance.
*
* @param EventInterface $event
* @return ResponseCollection
*/
public function triggerEvent(EventInterface $event)
{
return $this->triggerListeners($event->getName(), $event);
}
/**
* Trigger an event instance, short-circuiting if a listener response evaluates true via the callback.
*
* @param callable $callback
* @param EventInterface $event
* @return ResponseCollection
*/
public function triggerEventUntil(callable $callback, EventInterface $event)
{
return $this->triggerListeners($event->getName(), $event, $callback);
}
/**
* Attach a listener to an event
*
* The first argument is the event, and the next argument describes a
* callback that will respond to that event. A CallbackHandler instance
* describing the event listener combination will be returned.
*
* The last argument indicates a priority at which the event should be
* executed. By default, this value is 1; however, you may set it for any
* integer value. Higher values have higher priority (i.e., execute first).
*
* You can specify "*" for the event name. In such cases, the listener will
* be triggered for every event.
*
* @param string|array|ListenerAggregateInterface $event An event or array of event names. If a ListenerAggregateInterface, proxies to {@link attachAggregate()}.
* @param callable|int $callback If string $event provided, expects PHP callback; for a ListenerAggregateInterface $event, this will be the priority
* @param int $priority If provided, the priority at which to register the callable
* @return CallbackHandler|mixed CallbackHandler if attaching callable (to allow later unsubscribe); mixed if attaching aggregate
Arguments
"dispatch"
MvcEvent {#203}
Closure {#546
class: "Zend\Mvc\Controller\AbstractController"
this: EventController {#541 …}
parameters: {
$test: {}
}
file: "/var/www/vhosts/arche-menden.de/httpdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php"
line: "116 to 118"
}
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-mvc
/src
/Controller
/AbstractController.php
* @param null|Response $response
* @return Response|mixed
*/
public function dispatch(Request $request, Response $response = null)
{
$this->request = $request;
if (!$response) {
$response = new HttpResponse();
}
$this->response = $response;
$e = $this->getEvent();
$e->setName(MvcEvent::EVENT_DISPATCH);
$e->setRequest($request);
$e->setResponse($response);
$e->setTarget($this);
$result = $this->getEventManager()->triggerEventUntil(function ($test) {
return ($test instanceof Response);
}, $e);
if ($result->stopped()) {
return $result->last();
}
return $e->getResult();
}
/**
* Get request object
*
* @return Request
*/
public function getRequest()
{
if (!$this->request) {
$this->request = new HttpRequest();
}
return $this->request;
Arguments
Closure {#546
class: "Zend\Mvc\Controller\AbstractController"
this: EventController {#541 …}
parameters: {
$test: {}
}
file: "/var/www/vhosts/arche-menden.de/httpdocs/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php"
line: "116 to 118"
}
MvcEvent {#203}
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-mvc
/src
/DispatchListener.php
$return = $this->marshalControllerNotFoundEvent($application::ERROR_CONTROLLER_INVALID, $controllerName, $e, $application, $exception);
return $this->complete($return, $e);
} catch (\Throwable $exception) {
$return = $this->marshalBadControllerEvent($controllerName, $e, $application, $exception);
return $this->complete($return, $e);
} catch (\Exception $exception) { // @TODO clean up once PHP 7 requirement is enforced
$return = $this->marshalBadControllerEvent($controllerName, $e, $application, $exception);
return $this->complete($return, $e);
}
if ($controller instanceof InjectApplicationEventInterface) {
$controller->setEvent($e);
}
$request = $e->getRequest();
$response = $application->getResponse();
$caughtException = null;
try {
$return = $controller->dispatch($request, $response);
} catch (\Throwable $ex) {
$caughtException = $ex;
} catch (\Exception $ex) { // @TODO clean up once PHP 7 requirement is enforced
$caughtException = $ex;
}
if ($caughtException !== null) {
$e->setName(MvcEvent::EVENT_DISPATCH_ERROR);
$e->setError($application::ERROR_EXCEPTION);
$e->setController($controllerName);
$e->setControllerClass(get_class($controller));
$e->setParam('exception', $caughtException);
$return = $application->getEventManager()->triggerEvent($e)->last();
if (! $return) {
$return = $e->getResult();
}
}
return $this->complete($return, $e);
Arguments
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-eventmanager
/src
/EventManager.php
$wildcardListeners = $this->getListeners('*');
if (count($sharedListeners) || count($sharedWildcardListeners) || count($wildcardListeners)) {
$listeners = clone $listeners;
// Shared listeners on this specific event
$this->insertListeners($listeners, $sharedListeners);
// Shared wildcard listeners
$this->insertListeners($listeners, $sharedWildcardListeners);
// Add wildcard listeners
$this->insertListeners($listeners, $wildcardListeners);
}
foreach ($listeners as $listener) {
$listenerCallback = $listener->getCallback();
// Trigger the listener's callback, and push its result onto the
// response collection
$responses->push(call_user_func($listenerCallback, $e));
// If the event was asked to stop propagating, do so
if ($e->propagationIsStopped()) {
$responses->setStopped(true);
break;
}
// If the result causes our validation callback to return true,
// stop propagation
if ($callback && call_user_func($callback, $responses->last())) {
$responses->setStopped(true);
break;
}
}
return $responses;
}
/**
* Get list of all listeners attached to the shared event manager for
Arguments
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-eventmanager
/src
/EventManager.php
$wildcardListeners = $this->getListeners('*');
if (count($sharedListeners) || count($sharedWildcardListeners) || count($wildcardListeners)) {
$listeners = clone $listeners;
// Shared listeners on this specific event
$this->insertListeners($listeners, $sharedListeners);
// Shared wildcard listeners
$this->insertListeners($listeners, $sharedWildcardListeners);
// Add wildcard listeners
$this->insertListeners($listeners, $wildcardListeners);
}
foreach ($listeners as $listener) {
$listenerCallback = $listener->getCallback();
// Trigger the listener's callback, and push its result onto the
// response collection
$responses->push(call_user_func($listenerCallback, $e));
// If the event was asked to stop propagating, do so
if ($e->propagationIsStopped()) {
$responses->setStopped(true);
break;
}
// If the result causes our validation callback to return true,
// stop propagation
if ($callback && call_user_func($callback, $responses->last())) {
$responses->setStopped(true);
break;
}
}
return $responses;
}
/**
* Get list of all listeners attached to the shared event manager for
Arguments
array:2 [
0 => DispatchListener {#176}
1 => "onDispatch"
]
MvcEvent {#203}
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-eventmanager
/src
/EventManager.php
* Trigger an event instance.
*
* @param EventInterface $event
* @return ResponseCollection
*/
public function triggerEvent(EventInterface $event)
{
return $this->triggerListeners($event->getName(), $event);
}
/**
* Trigger an event instance, short-circuiting if a listener response evaluates true via the callback.
*
* @param callable $callback
* @param EventInterface $event
* @return ResponseCollection
*/
public function triggerEventUntil(callable $callback, EventInterface $event)
{
return $this->triggerListeners($event->getName(), $event, $callback);
}
/**
* Attach a listener to an event
*
* The first argument is the event, and the next argument describes a
* callback that will respond to that event. A CallbackHandler instance
* describing the event listener combination will be returned.
*
* The last argument indicates a priority at which the event should be
* executed. By default, this value is 1; however, you may set it for any
* integer value. Higher values have higher priority (i.e., execute first).
*
* You can specify "*" for the event name. In such cases, the listener will
* be triggered for every event.
*
* @param string|array|ListenerAggregateInterface $event An event or array of event names. If a ListenerAggregateInterface, proxies to {@link attachAggregate()}.
* @param callable|int $callback If string $event provided, expects PHP callback; for a ListenerAggregateInterface $event, this will be the priority
* @param int $priority If provided, the priority at which to register the callable
* @return CallbackHandler|mixed CallbackHandler if attaching callable (to allow later unsubscribe); mixed if attaching aggregate
Arguments
"dispatch"
MvcEvent {#203}
Closure {#289
class: "Zend\Mvc\Application"
this: Application {#19 …}
parameters: {
$r: {}
}
use: {
$event: MvcEvent {#203}
}
file: "/var/www/vhosts/arche-menden.de/httpdocs/vendor/zendframework/zend-mvc/src/Application.php"
line: "306 to 314"
}
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/vendor
/zendframework
/zend-mvc
/src
/Application.php
$response = $result->last();
if ($response instanceof ResponseInterface) {
$event->setName(MvcEvent::EVENT_FINISH);
$event->setTarget($this);
$event->setResponse($response);
$event->stopPropagation(false); // Clear before triggering
$events->triggerEvent($event);
$this->response = $response;
return $this;
}
}
if ($event->getError()) {
return $this->completeRequest($event);
}
// Trigger dispatch event
$event->setName(MvcEvent::EVENT_DISPATCH);
$event->stopPropagation(false); // Clear before triggering
$result = $events->triggerEventUntil($shortCircuit, $event);
// Complete response
$response = $result->last();
if ($response instanceof ResponseInterface) {
$event->setName(MvcEvent::EVENT_FINISH);
$event->setTarget($this);
$event->setResponse($response);
$event->stopPropagation(false); // Clear before triggering
$events->triggerEvent($event);
$this->response = $response;
return $this;
}
$response = $this->response;
$event->setResponse($response);
$this->completeRequest($event);
return $this;
}
Arguments
Closure {#289
class: "Zend\Mvc\Application"
this: Application {#19 …}
parameters: {
$r: {}
}
use: {
$event: MvcEvent {#203}
}
file: "/var/www/vhosts/arche-menden.de/httpdocs/vendor/zendframework/zend-mvc/src/Application.php"
line: "306 to 314"
}
MvcEvent {#203}
/var
/www
/vhosts
/arche-menden.de
/httpdocs
/public
/index.php
<?php
error_reporting(E_ALL ^ E_USER_DEPRECATED);
/**
* This makes our life easier when dealing with paths. Everything is relative
* to the application root now.
*/
chdir(dirname(__DIR__));
// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
return false;
}
// Setup autoloading
require 'init_autoloader.php';
// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();