APPPATH/classes/Model/Recruitment.php [ 60 ]
55 public function getAnnouncement($ID)
56 {
57 $row = DB::select()->from($this->table_name)->where('ID', '=', $ID)->execute()->current();
58
59 $row['SubmissionDeadline'] = strtotime($row['SubmissionDeadline']);
60 $row['PublishDateTime'] = strtotime($row['PublishDateTime']);
61
62 $row['SubmissionDeadline'] = date('d-m-Y', $row['SubmissionDeadline']);
63 $row['PublishDateTime'] = date('d-m-Y', $row['PublishDateTime']);
64
65 return $row;
-
APPPATH/classes/Model/Recruitment.php [ 60 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(32) "Undefined index: PublishDateTime"
2
string(92) "/home/www/vhosts/mazowsze.witd.gov.pl/httpdocs_bip/application/classes/Model/Recruitment.php"
3
integer 60
4
array(2) ( "ID" => integer 20 "row" => array(1) ( "SubmissionDeadline" => bool FALSE ) )
55 public function getAnnouncement($ID) 56 { 57 $row = DB::select()->from($this->table_name)->where('ID', '=', $ID)->execute()->current(); 58 59 $row['SubmissionDeadline'] = strtotime($row['SubmissionDeadline']); 60 $row['PublishDateTime'] = strtotime($row['PublishDateTime']); 61 62 $row['SubmissionDeadline'] = date('d-m-Y', $row['SubmissionDeadline']); 63 $row['PublishDateTime'] = date('d-m-Y', $row['PublishDateTime']); 64 65 return $row;
-
APPPATH/classes/Controller/Recruitment.php [ 58 ] » Model_Recruitment->getAnnouncement(arguments)
0
integer 20
53 54 public function action_show() 55 { 56 $ID = (int) $this->request->param('id'); 57 58 $announcement = $this->recruitmentModel->getAnnouncement($ID); 59 60 $this->template->content = View::factory('frontend/recruitment_show')->set('announcement', $announcement); 61 $this->template->content->title = 'Ogłoszenie nr. '.$announcement['AnnouncementID']; 62 $this->template->content->active = 'list'; 63 $this->template->content->lastEdit = $this->registryModel->getRecruitmentRegistryByUri('ogloszenie,'.$ID.'.html');
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Recruitment->action_show()
79 array(':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 [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Recruitment(7)
{ public template => object View(2)
{ protected _file => string(90) "/home/www/vhosts/mazowsze.witd.gov.pl/httpdocs_bip/application/views/frontend/template.php" protected _data => array(4) ( "nonDefault" => bool TRUE "activePage" => string(10) "rekrutacja" "navigation" => array(15) ( 0 => array(4) ( "ID" => string(2) "24" "ParentID" => string(1) "0" "Uri" => string(18) "status-prawny.html" "Title" => string(13) "Status prawny" ) 1 => array(4) ( "ID" => string(2) "30" "ParentID" => string(1) "0" "Uri" => string(18) "organy-wladzy.html" "Title" => string(14) "Organy władzy" ) 2 => array(4) ( "ID" => string(2) "28" "ParentID" => string(1) "0" "Uri" => string(16) "organizacja.html" "Title" => string(11) "Organizacja" ) 3 => array(4) ( "ID" => string(2) "29" "ParentID" => string(1) "0" "Uri" => string(24) "przedmiot-dzialania.html" "Title" => string(20) "Przedmiot działania" ) 4 => array(4) ( "ID" => string(2) "31" "ParentID" => string(1) "0" "Uri" => string(20) "tryb-odwolawczy.html" "Title" => string(16) "Tryb odwoławczy" ) 5 => array(4) ( "ID" => string(2) "32" "ParentID" => string(1) "0" "Uri" => string(12) "majatek.html" "Title" => string(8) "Majątek" ) 6 => array(4) ( "ID" => string(2) "33" "ParentID" => string(1) "0" "Uri" => string(29) "skargi-wnioski-i-petycje.html" "Title" => string(25) "Skargi, wnioski i petycje" ) 7 => array(4) ( "ID" => string(2) "41" "ParentID" => string(1) "0" "Uri" => string(54) "ulga-w-wykonaniu-administracyjnej-kary-pienieznej.html" "Title" => string(51) "Ulga w wykonaniu administracyjnej kary pieniężnej" ) 8 => array(4) ( "ID" => string(2) "34" "ParentID" => string(1) "0" "Uri" => string(13) "redakcja.html" "Title" => string(8) "Redakcja" ) 9 => array(4) ( "ID" => string(2) "35" "ParentID" => string(1) "0" "Uri" => string(23) "instrukcja-obslugi.html" "Title" => string(19) "Instrukcja obsługi" ) 10 => array(4) ( "ID" => string(2) "42" "ParentID" => string(1) "0" "Uri" => string(26) "polityka-informacyjna.html" "Title" => string(21) "Polityka informacyjna" ) 11 => array(4) ( "ID" => string(2) "46" "ParentID" => string(1) "0" "Uri" => string(27) "sprawozdania-finansowe.html" "Title" => string(22) "Sprawozdania finansowe" ) 12 => array(4) ( "ID" => string(2) "45" "ParentID" => string(1) "0" "Uri" => string(21) "polityka-cookies.html" "Title" => string(16) "Polityka cookies" ) 13 => array(4) ( "ID" => string(2) "47" "ParentID" => string(1) "0" "Uri" => string(31) "koordynator-ds-dostepnosci.html" "Title" => string(29) "Koordynator ds. dostępności" ) 14 => array(4) ( "ID" => string(2) "48" "ParentID" => string(1) "0" "Uri" => string(27) "deklaracja-dostepnosci.html" "Title" => string(24) "Deklaracja dostępności" ) ) "lastEditTime" => string(19) "2023-12-01 15:07:51" ) }
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.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(20) "ogloszenie,<id>.html" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Recruitment" "action" => string(4) "show" ) protected _route_regex => string(43) "#^ogloszenie,(?P<id>[^/.,;?\n]++)\.html$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Recruitment" protected _action => string(4) "show" protected _uri => string(18) "ogloszenie,20.html" protected _external => bool FALSE protected _params => array(1) ( "id" => string(2) "20" ) protected _get => array(1) ( "ogloszenie,20_html" => string(0) "" ) 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(0)
public navigationModel => object Model_Navigation(1){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ public table_name => string(5) "Pages" }
public recruitmentModel => object Model_Recruitment(1){ private table_name => string(11) "Recruitment" }
public registryModel => object Model_Registry(1){ private table_name => string(8) "Registry" }
}92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 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.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(20) "ogloszenie,<id>.html" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Recruitment" "action" => string(4) "show" ) protected _route_regex => string(43) "#^ogloszenie,(?P<id>[^/.,;?\n]++)\.html$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Recruitment" protected _action => string(4) "show" protected _uri => string(18) "ogloszenie,20.html" protected _external => bool FALSE protected _params => array(1) ( "id" => string(2) "20" ) protected _get => array(1) ( "ogloszenie,20_html" => string(0) "" ) 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(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(array('_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 [ 986 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(20) "ogloszenie,<id>.html" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Recruitment" "action" => string(4) "show" ) protected _route_regex => string(43) "#^ogloszenie,(?P<id>[^/.,;?\n]++)\.html$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Recruitment" protected _action => string(4) "show" protected _uri => string(18) "ogloszenie,20.html" protected _external => bool FALSE protected _params => array(1) ( "id" => string(2) "20" ) protected _get => array(1) ( "ogloszenie,20_html" => string(0) "" ) 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) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }