ВИБРООПОР
ВИБРОГАСИТЕЛЕЙ
ВИБРОИЗОЛЯТОРОВ
АМОРТИЗАТОРОВ
MODPATH/database/classes/Kohana/Database/MySQL.php [ 67 ]
62 catch (Exception $e)
63 {
64 // No connection exists
65 $this->_connection = NULL;
66
67 throw new Database_Exception(':error',
68 array(':error' => $e->getMessage()),
69 $e->getCode());
70 }
71
72 // \xFF is a better delimiter, but the PHP driver uses underscore
MODPATH/database/classes/Kohana/Database/MySQL.php [ 171 ] » Kohana_Database_MySQL->connect()
166 }
167
168 public function query($type, $sql, $as_object = FALSE, array $params = NULL)
169 {
170 // Make sure the database is connected
171 $this->_connection or $this->connect();
172
173 if (Kohana::$profiling)
174 {
175 // Benchmark this query for the current instance
176 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
MODPATH/database/classes/Kohana/Database/MySQL.php [ 359 ] » Kohana_Database_MySQL->query(arguments)
0 |
integer 1 |
1 |
string(29) "SHOW FULL COLUMNS FROM `news`" |
2 |
bool FALSE |
354 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE);
355 }
356 else
357 {
358 // Find all column names
359 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE);
360 }
361
362 $count = 0;
363 $columns = array();
364 foreach ($result as $row)
MODPATH/orm/classes/Kohana/ORM.php [ 1668 ] » Kohana_Database_MySQL->list_columns(arguments)
0 |
string(4) "news" |
1663 * @return array
1664 */
1665 public function list_columns()
1666 {
1667 // Proxy to database
1668 return $this->_db->list_columns($this->_table_name);
1669 }
1670
1671 /**
1672 * Returns an ORM model for the given one-one related alias
1673 *
MODPATH/orm/classes/Kohana/ORM.php [ 444 ] » Kohana_ORM->list_columns()
439 $this->_table_columns = ORM::$_column_cache[$this->_object_name];
440 }
441 else
442 {
443 // Grab column information from database
444 $this->_table_columns = $this->list_columns();
445
446 // Load column cache
447 ORM::$_column_cache[$this->_object_name] = $this->_table_columns;
448 }
449 }
MODPATH/orm/classes/Kohana/ORM.php [ 389 ] » Kohana_ORM->reload_columns()
384 {
385 $this->{$property} = $value;
386 }
387
388 // Load column information
389 $this->reload_columns();
390
391 // Clear initial model state
392 $this->clear();
393 }
394
MODPATH/orm/classes/Kohana/ORM.php [ 254 ] » Kohana_ORM->_initialize()
249 *
250 * @param mixed $id Parameter for find or object to load
251 */
252 public function __construct($id = NULL)
253 {
254 $this->_initialize();
255
256 if ($id !== NULL)
257 {
258 if (is_array($id))
259 {
MODPATH/orm/classes/Kohana/ORM.php [ 46 ] » Kohana_ORM->__construct(arguments)
0 |
NULL |
41 public static function factory($model, $id = NULL)
42 {
43 // Set class name
44 $model = 'Model_'.$model;
45
46 return new $model($id);
47 }
48
49 /**
50 * "Has one" relationships
51 * @var array
APPPATH/views/frontend/right.php [ 18 ] » Kohana_ORM::factory(arguments)
0 |
string(4) "News" |
13 <div style="margin-top: 10px">
14 <p><span class="title">E-mail:</span> Vibronikaspb@gmail.com</p>
15 </div>
16 </div>
17 <div class="news-box">
18 <?php $news = ORM::factory('News')->where('enabled', '=', 1)->order_by('id', 'desc')->limit(3)->find_all(); ?>
19 <?php if (count($news)): ?>
20 <?php foreach ($news as $new): ?>
21 <div class="item-news">
22 <h6><?php echo $new->date_format(); ?></h6>
23 <a href="<?php echo URL::site("news/{$new->id}");?>"><?php echo $new->annotation; ?></a>
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0 |
string(57) "/var/www/finimor.com/application/views/frontend/right.php" |
57 ob_start();
58
59 try
60 {
61 // Load the view within the current scope
62 include $kohana_view_filename;
63 }
64 catch (Exception $e)
65 {
66 // Delete the output buffer
67 ob_end_clean();
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)
0 |
string(57) "/var/www/finimor.com/application/views/frontend/right.php" |
1 |
array(0) |
354 {
355 throw new View_Exception('You must set the file to use within your view before rendering');
356 }
357
358 // Combine local and global data and capture the output
359 return View::capture($this->_file, $this->_data);
360 }
361
362 }
SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()
231 */
232 public function __toString()
233 {
234 try
235 {
236 return $this->render();
237 }
238 catch (Exception $e)
239 {
240 /**
241 * Display the exception message.
APPPATH/views/frontend/index/call.php [ 14 ] » Kohana_View->__toString()
9 <tr><td style="padding: 0px 15px 15px 0px;">Телефон:</td><td><?php echo Form::input('phone', @$_POST['phone'], array('style'=>"width: 50%")); ?></td></tr>
10 <tr><td style="padding: 0px 15px 15px 0px;"> </td><td><input type="submit" value="Отправить" /></td></tr>
11 </table>
12 <?php echo Form::close(); ?>
13 </section>
14 <?php echo View::factory('frontend/right'); ?>
15 </div>
16 </div>
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0 |
string(62) "/var/www/finimor.com/application/views/frontend/index/call.php" |
57 ob_start();
58
59 try
60 {
61 // Load the view within the current scope
62 include $kohana_view_filename;
63 }
64 catch (Exception $e)
65 {
66 // Delete the output buffer
67 ob_end_clean();
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)
0 |
string(62) "/var/www/finimor.com/application/views/frontend/index/call.php" |
1 |
array(1) ( "title" => string(29) "Обратный звонок" ) |
354 {
355 throw new View_Exception('You must set the file to use within your view before rendering');
356 }
357
358 // Combine local and global data and capture the output
359 return View::capture($this->_file, $this->_data);
360 }
361
362 }
SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()
231 */
232 public function __toString()
233 {
234 try
235 {
236 return $this->render();
237 }
238 catch (Exception $e)
239 {
240 /**
241 * Display the exception message.
APPPATH/views/frontend/_layouts/main.php [ 63 ] » Kohana_View->__toString()
58 <p>ВИБРОИЗОЛЯТОРОВ</p>
59 <p>АМОРТИЗАТОРОВ</p>
60 </div>
61 </div>
62
63 <?php echo isset($content) ? $content : ""; ?>
64
65 <footer class="footer">
66 <div class="wrapp-page">
67 <div class="footer-right">
68 <div class="counter">
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0 |
string(65) "/var/www/finimor.com/application/views/frontend/_layouts/main.php" |
57 ob_start();
58
59 try
60 {
61 // Load the view within the current scope
62 include $kohana_view_filename;
63 }
64 catch (Exception $e)
65 {
66 // Delete the output buffer
67 ob_end_clean();
SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)
0 |
string(65) "/var/www/finimor.com/application/views/frontend/_layouts/main.php" |
1 |
array(4) (
"content" => object View(2) |
354