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(755) "SELECT `al_s`.`ShiurID`, `Title`, `Length`, truncate(if(`Length`<60,60,`Length`)/60,0) AS `FormattedLength`, `al_s`.`Description …"
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 [ 219 ] » Kohana_Database_Query->execute()
214 215 if ($use_paging) { 216 $query = $query->limit($per_page)->offset($per_page * ($page - 1)); 217 return $query->execute()->as_array(); 218 } else { 219 $this->shiurim = $query->execute()->as_array(); 220 } 221 } 222 return $this->shiurim; 223 } 224
-
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/rabbireingold.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/rabbireingold.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(12)
){ public speaker_id => string(1) "5" private data => array(7) ( "SpeakerID" => string(1) "5" "LastName" => string(8) "Reingold" "Name" => string(22) "Rabbi Eliyahu Reingold" "SEName" => string(22) "rabbi-eliyahu-reingold" "Description" => string(602) "Rav Eliyahu Reingold, Rosh Kollel in the Yeshiva of Greater Washington, spent many years learning in the Telshe Yeshiva and Koll …" "DateModified" => string(19) "2011-12-06 13:46:17" "HasPicture" => string(1) "0" ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private shiurimseries => NULL private image => string(21) "assets/speakers/5.jpg" public filter_categoryid => NULL public filter_series => string(0) "" 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 *
-
/cachedisk/rabbireingold.com/cache/mustache/__Mustache_ac681918a13c4c99d9878057d20cf524.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->sectionBf2378a0945e5354cc8f2fe5c47358ad($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/rabbireingold.com/vendor/mustache/mustache/src/Mustache/Template.php [ 67 ] » __Mustache_ac681918a13c4c99d9878057d20cf524->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(12)
) }{ public speaker_id => string(1) "5" private data => array(7) ( "SpeakerID" => string(1) "5" "LastName" => string(8) "Reingold" "Name" => string(22) "Rabbi Eliyahu Reingold" "SEName" => string(22) "rabbi-eliyahu-reingold" "Description" => string(602) "Rav Eliyahu Reingold, Rosh Kollel in the Yeshiva of Greater Washington, spent many years learning in the Telshe Yeshiva and Koll …" "DateModified" => string(19) "2011-12-06 13:46:17" "HasPicture" => string(1) "0" ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private shiurimseries => NULL private image => string(21) "assets/speakers/5.jpg" public filter_categoryid => NULL public filter_series => string(0) "" 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(12)
{ public speaker_id => string(1) "5" private data => array(7) ( "SpeakerID" => string(1) "5" "LastName" => string(8) "Reingold" "Name" => string(22) "Rabbi Eliyahu Reingold" "SEName" => string(22) "rabbi-eliyahu-reingold" "Description" => string(602) "Rav Eliyahu Reingold, Rosh Kollel in the Yeshiva of Greater Washington, spent many years learning in the Telshe Yeshiva and Koll …" "DateModified" => string(19) "2011-12-06 13:46:17" "HasPicture" => string(1) "0" ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private shiurimseries => NULL private image => string(21) "assets/speakers/5.jpg" public filter_categoryid => NULL public filter_series => string(0) "" 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(12)
{ public speaker_id => string(1) "5" private data => array(7) ( "SpeakerID" => string(1) "5" "LastName" => string(8) "Reingold" "Name" => string(22) "Rabbi Eliyahu Reingold" "SEName" => string(22) "rabbi-eliyahu-reingold" "Description" => string(602) "Rav Eliyahu Reingold, Rosh Kollel in the Yeshiva of Greater Washington, spent many years learning in the Telshe Yeshiva and Koll …" "DateModified" => string(19) "2011-12-06 13:46:17" "HasPicture" => string(1) "0" ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private shiurimseries => NULL private image => string(21) "assets/speakers/5.jpg" public filter_categoryid => NULL public filter_series => string(0) "" 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 [ 256 ] » 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(12)
{ public speaker_id => string(1) "5" private data => array(7) ( "SpeakerID" => string(1) "5" "LastName" => string(8) "Reingold" "Name" => string(22) "Rabbi Eliyahu Reingold" "SEName" => string(22) "rabbi-eliyahu-reingold" "Description" => string(602) "Rav Eliyahu Reingold, Rosh Kollel in the Yeshiva of Greater Washington, spent many years learning in the Telshe Yeshiva and Koll …" "DateModified" => string(19) "2011-12-06 13:46:17" "HasPicture" => string(1) "0" ) private list => NULL private shiurim => NULL private num_items => integer 0 private shiurimcats => NULL private shiurimseries => NULL private image => string(21) "assets/speakers/5.jpg" public filter_categoryid => NULL public filter_series => string(0) "" 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
251 else 252 { 253 $renderer = Kostache::factory(); 254 } 255 256 return $renderer->render($this, $template); 257 } 258 259 /** 260 * Render a mustache template that is not associated with a specific ViewModel, 261 * but does use View_Template logic.
-
MODPATH/aldis/classes/Controller/ALDIS/Speaker.php [ 34 ] » View_Template->render()
29 } 30 31 $view = new View_Speaker; 32 $view->speaker = $current_speaker; 33 34 $this->response->body($view->render()); 35 } 36 37 public function action_png() 38 { 39
-
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 TRUE 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(31) "s-5-rabbi-eliyahu-reingold.html" protected _external => bool FALSE protected _params => array(2) ( "object" => string(1) "5" "sename" => string(22) "rabbi-eliyahu-reingold" ) 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 TRUE 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(31) "s-5-rabbi-eliyahu-reingold.html" protected _external => bool FALSE protected _params => array(2) ( "object" => string(1) "5" "sename" => string(22) "rabbi-eliyahu-reingold" ) 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 [ 997 ] » 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(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(31) "s-5-rabbi-eliyahu-reingold.html" protected _external => bool FALSE protected _params => array(2) ( "object" => string(1) "5" "sename" => string(22) "rabbi-eliyahu-reingold" ) 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) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * 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