APPPATH/classes/Model/event.php [ 23 ]
18 if ($id){
19 $query = DB::select()
20 ->from('events')
21 ->where('id', '=', $id);
22 $result = $query->execute()->as_array();
23 $result = $result[0];
24 }else{
25 $result = null;
26 }
27
28 if ($type == 'ics'){
-
APPPATH/classes/Model/event.php [ 23 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(19) "Undefined offset: 0"
2
string(65) "/var/www/tools.emailmatrix.ru/application/classes/Model/event.php"
3
integer 23
4
array(5) ( "id" => string(4) "1735" "userid" => integer 0 "type" => string(3) "ics" "query" => object Database_Query_Builder_Select(19)
{ protected _select => array(0) protected _distinct => bool FALSE protected _from => array(1) ( 0 => string(6) "events" ) protected _join => array(0) protected _group_by => array(0) protected _having => array(0) protected _offset => NULL protected _union => array(0) protected _last_join => NULL protected _where => array(1) ( 0 => array(1) ( "AND" => array(3) ( 0 => string(2) "id" 1 => string(1) "=" 2 => string(4) "1735" ) ) ) protected _order_by => array(0) protected _limit => NULL protected _type => integer 1 protected _force_execute => bool FALSE protected _lifetime => NULL protected _sql => string(42) "SELECT * FROM `events` WHERE `id` = '1735'" protected _parameters => array(0) protected _as_object => bool FALSE protected _object_params => array(0) }
"result" => array(0) )18 if ($id){ 19 $query = DB::select() 20 ->from('events') 21 ->where('id', '=', $id); 22 $result = $query->execute()->as_array(); 23 $result = $result[0]; 24 }else{ 25 $result = null; 26 } 27 28 if ($type == 'ics'){
-
APPPATH/classes/Controller/EventTgenerator.php [ 90 ] » Model_Event->get(arguments)
0
string(4) "1735"
1
integer 0
2
string(3) "ics"
85 86 // Файл для скачивания 87 $this->response->headers('Content-Type', 'application/octet-stream'); 88 $this->response->headers('Content-Disposition', 'attachment; filename=calendar.ics'); 89 90 $text = $eventObj->get($id, $this->user['id'], 'ics'); 91 92 $this->template->content = $text; 93 } 94 } 95 }
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_EventTgenerator->action_index()
79 [':uri' => $this->request->uri()] 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)
0
object Controller_EventTgenerator(5)
{ public template => object View(2)
{ protected _file => string(56) "/var/www/tools.emailmatrix.ru/application/views/json.php" protected _data => array(8) ( "user" => array(9) ( "login" => bool FALSE "id" => integer 0 "role" => array(1) ( 0 => string(5) "guest" ) "email" => string(0) "" "name" => string(0) "" "fname" => string(0) "" "lname" => string(0) "" "vk_auth" => string(0) "" "fb_auth" => string(0) "" ) "content" => string(0) "" "metas" => array(5) ( 0 => string(131) "<meta property="og:title" content="Полезные сервисы для емейл-маркетолога | EMAILMATRIX Tools" />" 1 => string(45) "<meta property="og:type" content="website" />" 2 => string(46) "<meta name="twitter:card" content="summary" />" 3 => string(88) "<meta property="og:image" content="https://tools.emailmatrix.ru/public/img/share.png" />" 4 => string(307) "<meta property="og:description" content="Напоминайте подписчику о предстоящих событиях с помощью календарей, встроенных в письмо …" ) "controller" => string(15) "EventTgenerator" "action" => string(5) "index" "styles" => array(7) ( 0 => string(13) "new/css/reset" 1 => string(30) "new/js/semantic/transition.min" 2 => string(28) "new/js/semantic/dropdown.min" 3 => string(30) "new/js/magnific/magnific-popup" 4 => string(38) "new/js/mcs/jquery.mCustomScrollbar.min" 5 => string(14) "new/css/styles" 6 => string(13) "new/css/media" ) "scripts" => array(10) ( 0 => string(14) "lib/jquery.min" 1 => string(19) "lib/jquery.json.min" 2 => string(22) "js/jquery.validate.min" 3 => string(20) "new/js/jquery.cookie" 4 => string(30) "new/js/semantic/transition.min" 5 => string(28) "new/js/semantic/dropdown.min" 6 => string(41) "new/js/magnific/jquery.magnific-popup.min" 7 => string(16) "new/js/slick.min" 8 => string(38) "new/js/mcs/jquery.mCustomScrollbar.min" 9 => string(11) "new/js/main" ) "title" => string(92) "Генератор событий для Google- и ICS-календаря | Event Generator" ) }
public user => array(9) ( "login" => bool FALSE "id" => integer 0 "role" => array(1) ( 0 => string(5) "guest" ) "email" => string(0) "" "name" => string(0) "" "fname" => string(0) "" "lname" => string(0) "" "vk_auth" => string(0) "" "fb_auth" => string(0) "" ) public auto_render => bool TRUE public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(1) ( 0 => object Closure(1)
protected _routes => array(0) protected _header => object HTTP_Header(6){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(41) "(<controller>(/<action>(/<task>(/<id>))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(8) "services" "action" => string(5) "index" ) protected _route_regex => string(123) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<task>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?)?$#uD" }{ public host => string(20) "tools.emailmatrix.ru" public x-real-ip => string(14) "54.204.117.206" public x-forwarded-for => string(14) "54.204.117.206" public connection => string(5) "close" public accept => string(3) "*/*" public user-agent => string(9) "claudebot" }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(15) "EventTgenerator" protected _action => string(5) "index" protected _uri => string(15) "event-generator" protected _external => bool FALSE protected _params => array(0) protected _get => array(2) ( "format" => string(3) "ics" "id" => string(4) "1735" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(2)
}{ public content-type => string(24) "application/octet-stream" public content-disposition => string(33) "attachment; filename=calendar.ics" }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(1) ( 0 => object Closure(1)
protected _routes => array(0) protected _header => object HTTP_Header(6){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(41) "(<controller>(/<action>(/<task>(/<id>))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(8) "services" "action" => string(5) "index" ) protected _route_regex => string(123) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<task>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?)?$#uD" }{ public host => string(20) "tools.emailmatrix.ru" public x-real-ip => string(14) "54.204.117.206" public x-forwarded-for => string(14) "54.204.117.206" public connection => string(5) "close" public accept => string(3) "*/*" public user-agent => string(9) "claudebot" }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(15) "EventTgenerator" protected _action => string(5) "index" protected _uri => string(15) "event-generator" protected _external => bool FALSE protected _params => array(0) protected _get => array(2) ( "format" => string(3) "ics" "id" => string(4) "1735" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(2)
{ public content-type => string(24) "application/octet-stream" public content-disposition => string(33) "attachment; filename=calendar.ics" }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(1) ( 0 => object Closure(1)
protected _routes => array(0) protected _header => object HTTP_Header(6){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(41) "(<controller>(/<action>(/<task>(/<id>))))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(8) "services" "action" => string(5) "index" ) protected _route_regex => string(123) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<task>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?)?$#uD" }{ public host => string(20) "tools.emailmatrix.ru" public x-real-ip => string(14) "54.204.117.206" public x-forwarded-for => string(14) "54.204.117.206" public connection => string(5) "close" public accept => string(3) "*/*" public user-agent => string(9) "claudebot" }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(15) "EventTgenerator" protected _action => string(5) "index" protected _uri => string(15) "event-generator" protected _external => bool FALSE protected _params => array(0) protected _get => array(2) ( "format" => string(3) "ics" "id" => string(4) "1735" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 119 ] » Kohana_Request->execute()
114 /** 115 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 116 * If no source is specified, the URI will be automatically detected. 117 */ 118 echo Request::factory(TRUE, array(), FALSE) 119 ->execute() 120 ->send_headers(TRUE) 121 ->body(); 122 }