Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
thumbnail.inc
1
<?php
18
require_once SQ_CORE_PACKAGE_PATH.
'/files/image/image.inc'
;
19
31
class
Thumbnail
extends
Image
32
{
33
38
var $max_width = 100;
39
44
var $max_height = 100;
45
46
53
function
Thumbnail
($assetid=0)
54
{
55
$this->
Image
($assetid);
56
57
}
//end constructor
58
59
68
function
_checkImageSize
($info)
69
{
70
$size = @getimagesize($info[
'filename'
]);
71
if
(!empty($size) && ($size[0] > $this->max_width || $size[1] > $this->max_height)) {
72
trigger_localised_error(
'CORE0108'
, E_USER_WARNING, $this->max_width, $this->max_height);
73
return
FALSE;
74
}
75
76
return
TRUE;
77
78
}
//end _checkImageSize()
79
80
81
}
//end class
82
83
?>
squiz_matrix
core
assets
files
thumbnail
thumbnail.inc
Generated on Tue Jan 29 2013 14:04:37 for Squiz Matrix by
1.8.3.1