MODPATH/orm/classes/Kohana/ORM.php [ 712 ]
707
708 return $model->where($col, '=', $val);
709 }
710 else
711 {
712 throw new Kohana_Exception('The :property property does not exist in the :class class',
713 [':property' => $column, ':class' => get_class($this)]);
714 }
715 }
716
717 /**
-
MODPATH/orm/classes/Kohana/ORM.php [ 628 ]
623 * @param string $column Column name 624 * @return mixed 625 */ 626 public function __get($column) 627 { 628 return $this->get($column); 629 } 630 631 /** 632 * Handles getting of column 633 * Override this method to add custom get behavior
-
MODPATH/esup/classes/Model/Esup.php [ 13 ]
8 protected $_data = array(); 9 10 /* Возвращает поле, основанное на выбранном языке */ 11 public function get_prop($field, $escape = FALSE) 12 { 13 $value = $this->{$field.self::$postfix}; 14 return ($escape) ? HTML::entities($value) : $value; 15 } 16 17 /* Получить все элементы */ 18 public function get_items($limit = NULL, $offset = NULL, $sort_field = 'sort', $sort_direction = 'ASC')
-
APPPATH/classes/Controller/Specialities.php [ 18 ]
13 { 14 throw HTTP_Exception::factory(404, $this->text['tekst_stranitsa_ne_najdena']); 15 } 16 17 /* Meta title */ 18 $meta_title = $speciality->get_prop('meta_title'); 19 20 if ( ! empty($meta_title)) 21 { 22 $this->template->title = $meta_title; 23 }
-
SYSPATH/classes/Kohana/Controller.php [ 84 ]
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}
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ]
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 ]
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 [ 993 ]
988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 989 ':uri' => $this->_uri, 990 ]); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests.
-
125 /** 126 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 127 * If no source is specified, the URI will be automatically detected. 128 */ 129 echo Request::factory(TRUE, [], FALSE) 130 ->execute() 131 ->send_headers(TRUE) 132 ->body(); 133 }