MODPATH/database/classes/Kohana/Database/MySQLi.php [ 155 ]
150 {
151 // This benchmark is worthless
152 Profiler::delete($benchmark);
153 }
154
155 throw new Database_Exception(':error [ :query ]', array(
156 ':error' => $this->_connection->error,
157 ':query' => $sql
158 ), $this->_connection->errno);
159 }
160
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 1
1
string(635) "SELECT `al_s`.`ShiurID`, `Title`, `Length`, SEC_TO_TIME(`Length`) AS `FormattedLength`, `al_s`.`Description`, `al_s`.`DateModifi …"
2
bool FALSE
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
MODPATH/aldis/classes/Model/Speaker.php [ 141 ] » Kohana_Database_Query->execute()
136 137 if ($use_paging) { 138 $query = $query->limit($per_page)->offset($per_page * ($page - 1)); 139 return $query->execute()->as_array(); 140 } else { 141 $this->shiurim = $query->execute()->as_array(); 142 } 143 } 144 return $this->shiurim; 145 } 146
-
MODPATH/aldis/classes/View/Speaker.php [ 34 ] » Model_Speaker->shiurim()
29 return $this->speaker->Description; 30 } 31 32 public function has_shiurim() 33 { 34 return count($this->speaker->shiurim()) > 0; 35 } 36 public function shiurim() 37 { 38 $page = Request::current()->query('page') ?: 1; 39 $per_page = Request::current()->query('per_page') ?: 25;
-
/srv/www/rabbileuchter.com/vendor/mustache/mustache/src/Mustache/Context.php [ 138 ] » View_Speaker->has_shiurim()
133 private function findVariableInStack($id, array $stack) 134 { 135 for ($i = count($stack) - 1; $i >= 0; $i--) { 136 if (is_object($stack[$i]) && !$stack[$i] instanceof Closure) { 137 if (method_exists($stack[$i], $id)) { 138 return $stack[$i]->$id(); 139 } elseif (isset($stack[$i]->$id)) { 140 return $stack[$i]->$id; 141 } 142 } elseif (is_array($stack[$i]) && array_key_exists($id, $stack[$i])) { 143 return $stack[$i][$id];
-
/srv/www/rabbileuchter.com/vendor/mustache/mustache/src/Mustache/Context.php [ 78 ] » Mustache_Context->findVariableInStack(arguments)
0
string(11) "has_shiurim"
1
array(1) ( 0 => object View_Speaker(7)
{ public show_shiurim => bool TRUE public table_show_speaker => bool FALSE public table_show_category => bool TRUE public speaker => object Model_Speaker(10)
){ public speaker_id => string(3) "245" private data => array(7) ( "SpeakerID" => string(3) "245" "LastName" => string(8) "Leuchter" "Name" => string(21) "Rabbi Reuven Leuchter" "SEName" => string(21) "rabbi-reuven-leuchter" "Description" => string(1573) "<p>Rav Reuven Leuchter is one of the leading mussar personalities in Eretz Yisrael today. His weekly shiurim in Yerushalayim and …" "DateModified" => string(19) "2014-02-16 23:56:01" "HasPicture" => NULL ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private image => string(23) "assets/speakers/245.jpg" public filter_categoryid => NULL public filter_sort => NULL private shiurim_total_count => array(0) }
private _layout => string(14) "torahdownloads" public show_sidebar => bool TRUE public sidebar => NULL }73 * 74 * @return mixed Variable value, or '' if not found 75 */ 76 public function find($id) 77 { 78 return $this->findVariableInStack($id, $this->stack); 79 } 80 81 /** 82 * Find a 'dot notation' variable in the Context stack. 83 *
-
APPPATH/cache/mustache/__Mustache_56ab6348bf932673874e0be1a89f7a28.php [ 33 ] » Mustache_Context->find(arguments)
0
string(11) "has_shiurim"
28 $buffer .= $indent . '</div> 29 '; 30 $buffer .= $indent . '<div style="clear: both; margin-bottom: 30px;"></div> 31 '; 32 // 'has_shiurim' section 33 $buffer .= $this->section3e3bb12190308cf483eda8f2874411e7($context, $indent, $context->find('has_shiurim')); 34 // 'has_shiurim' inverted section 35 $value = $context->find('has_shiurim'); 36 if (empty($value)) { 37 38 $buffer .= $indent . '<p>This category has no shiurim in it.</p>
-
/srv/www/rabbileuchter.com/vendor/mustache/mustache/src/Mustache/Template.php [ 67 ] » __Mustache_56ab6348bf932673874e0be1a89f7a28->renderInternal(arguments)
0
object Mustache_Context(1)
{ private stack => array(1) ( 0 => object View_Speaker(7)
{ public show_shiurim => bool TRUE public table_show_speaker => bool FALSE public table_show_category => bool TRUE public speaker => object Model_Speaker(10)
) }{ public speaker_id => string(3) "245" private data => array(7) ( "SpeakerID" => string(3) "245" "LastName" => string(8) "Leuchter" "Name" => string(21) "Rabbi Reuven Leuchter" "SEName" => string(21) "rabbi-reuven-leuchter" "Description" => string(1573) "<p>Rav Reuven Leuchter is one of the leading mussar personalities in Eretz Yisrael today. His weekly shiurim in Yerushalayim and …" "DateModified" => string(19) "2014-02-16 23:56:01" "HasPicture" => NULL ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private image => string(23) "assets/speakers/245.jpg" public filter_categoryid => NULL public filter_sort => NULL private shiurim_total_count => array(0) }
private _layout => string(14) "torahdownloads" public show_sidebar => bool TRUE public sidebar => NULL }62 * 63 * @return string Rendered template 64 */ 65 public function render($context = array()) 66 { 67 return $this->renderInternal($this->prepareContextStack($context)); 68 } 69 70 /** 71 * Internal rendering method implemented by Mustache Template concrete subclasses. 72 *
-
MODPATH/kostache/classes/Kohana/Kostache.php [ 48 ] » Mustache_Template->render(arguments)
0
object View_Speaker(7)
{ public show_shiurim => bool TRUE public table_show_speaker => bool FALSE public table_show_category => bool TRUE public speaker => object Model_Speaker(10)
{ public speaker_id => string(3) "245" private data => array(7) ( "SpeakerID" => string(3) "245" "LastName" => string(8) "Leuchter" "Name" => string(21) "Rabbi Reuven Leuchter" "SEName" => string(21) "rabbi-reuven-leuchter" "Description" => string(1573) "<p>Rav Reuven Leuchter is one of the leading mussar personalities in Eretz Yisrael today. His weekly shiurim in Yerushalayim and …" "DateModified" => string(19) "2014-02-16 23:56:01" "HasPicture" => NULL ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private image => string(23) "assets/speakers/245.jpg" public filter_categoryid => NULL public filter_sort => NULL private shiurim_total_count => array(0) }
private _layout => string(14) "torahdownloads" public show_sidebar => bool TRUE public sidebar => NULL }43 $template = explode('_', get_class($class)); 44 array_shift($template); 45 $template = implode('/', $template); 46 } 47 48 return $this->_engine->loadTemplate($template)->render($class); 49 } 50 }
-
MODPATH/kostache/classes/Kohana/Kostache/Layout.php [ 39 ] » Kohana_Kostache->render(arguments)
0
object View_Speaker(7)
{ public show_shiurim => bool TRUE public table_show_speaker => bool FALSE public table_show_category => bool TRUE public speaker => object Model_Speaker(10)
{ public speaker_id => string(3) "245" private data => array(7) ( "SpeakerID" => string(3) "245" "LastName" => string(8) "Leuchter" "Name" => string(21) "Rabbi Reuven Leuchter" "SEName" => string(21) "rabbi-reuven-leuchter" "Description" => string(1573) "<p>Rav Reuven Leuchter is one of the leading mussar personalities in Eretz Yisrael today. His weekly shiurim in Yerushalayim and …" "DateModified" => string(19) "2014-02-16 23:56:01" "HasPicture" => NULL ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private image => string(23) "assets/speakers/245.jpg" public filter_categoryid => NULL public filter_sort => NULL private shiurim_total_count => array(0) }
private _layout => string(14) "torahdownloads" public show_sidebar => bool TRUE public sidebar => NULL }1
NULL
34 35 public function render($class, $template = NULL) 36 { 37 $this->_engine->setPartials( 38 array( 39 Kostache_Layout::CONTENT_PARTIAL => parent::render($class, $template) 40 ) 41 ); 42 43 return $this->_engine->loadTemplate($this->_layout)->render($class); 44 }
-
APPPATH/classes/View/Template.php [ 249 ] » Kohana_Kostache_Layout->render(arguments)
0
object View_Speaker(7)
{ public show_shiurim => bool TRUE public table_show_speaker => bool FALSE public table_show_category => bool TRUE public speaker => object Model_Speaker(10)
{ public speaker_id => string(3) "245" private data => array(7) ( "SpeakerID" => string(3) "245" "LastName" => string(8) "Leuchter" "Name" => string(21) "Rabbi Reuven Leuchter" "SEName" => string(21) "rabbi-reuven-leuchter" "Description" => string(1573) "<p>Rav Reuven Leuchter is one of the leading mussar personalities in Eretz Yisrael today. His weekly shiurim in Yerushalayim and …" "DateModified" => string(19) "2014-02-16 23:56:01" "HasPicture" => NULL ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private image => string(23) "assets/speakers/245.jpg" public filter_categoryid => NULL public filter_sort => NULL private shiurim_total_count => array(0) }
private _layout => string(14) "torahdownloads" public show_sidebar => bool TRUE public sidebar => NULL }1
NULL
244 else 245 { 246 $renderer = Kostache::factory(); 247 } 248 249 return $renderer->render($this, $template); 250 } 251 252 /** 253 * Render a mustache template that is not associated with a specific ViewModel, 254 * but does use View_Template logic.
-
MODPATH/aldis/classes/Controller/ALDIS/Speaker.php [ 33 ] » View_Template->render()
28 } 29 30 $view = new View_Speaker; 31 $view->speaker = $current_speaker; 32 33 $this->response->body($view->render()); 34 } 35 36 public function action_png() 37 { 38
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_ALDIS_Speaker->action_html()
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_ALDIS_Speaker(2)
{ public request => object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(30) "s-<object>(-<sename>).<action>" protected _regex => array(3) ( "object" => string(6) "[0-9]+" "sename" => string(2) ".+" "action" => string(21) "html|json|rss|png|mp3" ) protected _defaults => array(3) ( "controller" => string(13) "ALDIS_Speaker" "action" => string(4) "html" "sename" => NULL ) protected _route_regex => string(81) "#^s-(?P<object>[0-9]+)(?:-(?P<sename>.+))?\.(?P<action>html|json|rss|png|mp3)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(13) "ALDIS_Speaker" protected _action => string(4) "html" protected _uri => string(32) "s-245-rabbi-reuven-leuchter.html" protected _external => bool FALSE protected _params => array(2) ( "object" => string(3) "245" "sename" => string(21) "rabbi-reuven-leuchter" ) protected _get => array(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)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(30) "s-<object>(-<sename>).<action>" protected _regex => array(3) ( "object" => string(6) "[0-9]+" "sename" => string(2) ".+" "action" => string(21) "html|json|rss|png|mp3" ) protected _defaults => array(3) ( "controller" => string(13) "ALDIS_Speaker" "action" => string(4) "html" "sename" => NULL ) protected _route_regex => string(81) "#^s-(?P<object>[0-9]+)(?:-(?P<sename>.+))?\.(?P<action>html|json|rss|png|mp3)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(13) "ALDIS_Speaker" protected _action => string(4) "html" protected _uri => string(32) "s-245-rabbi-reuven-leuchter.html" protected _external => bool FALSE protected _params => array(2) ( "object" => string(3) "245" "sename" => string(21) "rabbi-reuven-leuchter" ) protected _get => array(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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(30) "s-<object>(-<sename>).<action>" protected _regex => array(3) ( "object" => string(6) "[0-9]+" "sename" => string(2) ".+" "action" => string(21) "html|json|rss|png|mp3" ) protected _defaults => array(3) ( "controller" => string(13) "ALDIS_Speaker" "action" => string(4) "html" "sename" => NULL ) protected _route_regex => string(81) "#^s-(?P<object>[0-9]+)(?:-(?P<sename>.+))?\.(?P<action>html|json|rss|png|mp3)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(13) "ALDIS_Speaker" protected _action => string(4) "html" protected _uri => string(32) "s-245-rabbi-reuven-leuchter.html" protected _external => bool FALSE protected _params => array(2) ( "object" => string(3) "245" "sename" => string(21) "rabbi-reuven-leuchter" ) protected _get => array(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 [ 128 ] » Kohana_Request->execute()
123 /** 124 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 125 * If no source is specified, the URI will be automatically detected. 126 */ 127 echo Request::factory(TRUE, NULL, FALSE) 128 ->execute() 129 ->send_headers(TRUE) 130 ->body(); 131 } 132