MODPATH\template\classes\Kohana\Img.php [ 26 ]
21 $image->resize($params['w'], $params['h'], Image::NONE);
22 }else{
23 $isize = getimagesize($storage.$src);
24 if($isize[0] > $params['w'] || $isize[1] > $params['h']){
25 if($params['resize'] == 'true' and $params['crop'] == 'true'){
26 $image->resize($params['w'], $params['h'], $keep ? $keep : $image->width / $params['w'] > $image->height / $params['h'] ? Image::HEIGHT : Image::WIDTH );
27 }else if($params['resize'] == 'true'){
28 $image->resize($params['w'], $params['h'], Image::AUTO);
29 }
30
31 if($params['crop'] == 'true')
-
SYSPATH\classes\Kohana\Core.php [ 511 ] » Kohana_Core::error_handler()
506 $file .= str_replace('_', DIRECTORY_SEPARATOR, $class); 507 508 if ($path = Kohana::find_file($directory, $file)) 509 { 510 // Load the class file 511 require $path; 512 513 // Class has been found 514 return TRUE; 515 } 516
-
SYSPATH\classes\Kohana\Core.php [ 511 ] » require()
506 $file .= str_replace('_', DIRECTORY_SEPARATOR, $class); 507 508 if ($path = Kohana::find_file($directory, $file)) 509 { 510 // Load the class file 511 require $path; 512 513 // Class has been found 514 return TRUE; 515 } 516
-
{PHP internal call} » Kohana_Core::auto_load()
-
MODPATH\template\classes\Img.php [ 3 ] » spl_autoload_call()
1 <?php defined('SYSPATH') or die('No direct script access.'); 2 3 class Img extends Kohana_Img { }
-
SYSPATH\classes\Kohana\Core.php [ 511 ] » require(arguments)
0
string(98) "\\WINDOWS-PD-0001.FS.LOCAWEB.COM.BR\WNFS-0001\verteconsulting\web\modules\template\classes\Img.php"
506 $file .= str_replace('_', DIRECTORY_SEPARATOR, $class); 507 508 if ($path = Kohana::find_file($directory, $file)) 509 { 510 // Load the class file 511 require $path; 512 513 // Class has been found 514 return TRUE; 515 } 516
-
{PHP internal call} » Kohana_Core::auto_load()
-
APPPATH\classes\Controller\Noticias.php [ 53 ] » spl_autoload_call()
48 $this->template->keywords = ""; 49 $this->template->description = Text::limit_chars(strip_tags($this->template->content->item->description), 100, '...', true); 50 if(!empty($this->template->content->item->yt_id)){ 51 $this->template->image = "https://img.youtube.com/vi/".$this->template->content->item->yt_id."/mqdefault.jpg"; 52 } else { 53 $this->template->image = URL::base() . Img::get($this->template->content->item->image, array('w' => 600, 'h' => 315, 'crop' => true, 'resize' => true)); 54 } 55 56 } 57 58 public function action_arquivo() {
-
SYSPATH\classes\Kohana\Controller.php [ 84 ] » Controller_Noticias->action_index()
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()
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()
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()
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 }