![]() |
FRED™
3.0
FRED™: Framework for Rapid and Easy Development
|
Public Member Functions | |
read ($handlers, $filename, $params=null) | |
![]() | |
__construct ($stream, $config) | |
search ($handlers, $mask=' *') | |
Search for files. More... | |
exists ($handlers, $filename, $params=null) | |
Check if a file exists. More... | |
time ($handlers, $filename, $params=null) | |
Modification time of a file. More... | |
read ($handlers, $filename, $params=null) | |
Read a file. More... | |
save ($handlers, $filename, $params, $data) | |
Save a file. More... | |
delete ($handlers, $filename, $params=null) | |
Save a file. More... | |
![]() | |
propertyExists ($property) | |
Check if a property exists (public or published). More... | |
constants ($prefix=null) | |
Return all constants. More... | |
get ($key) | |
Get one or more properties. More... | |
set ($key, $value=null) | |
Set one or more properties. More... | |
__get ($key) | |
__set ($key, $value) | |
Data Fields | |
$mode = IMG_BILINEAR_FIXED | |
$jpegQuality = 80 | |
$widths = [] | |
Allowed widths (small to large; empty = all). More... | |
$heights = [] | |
Allowed heights (small to large; empty = all). More... | |
$locked = true | |
Allowed sizes will be locked together by key. More... | |
![]() | |
const | HIDDEN = 0 |
Property is hidden. More... | |
const | READABLE = 1 |
Property is readable. More... | |
const | WRITEABLE = 2 |
Property is writeable. More... | |
const | READWRITE = 3 |
Property is readable and writeable. More... | |
Protected Member Functions | |
index ($sizes, &$size, $other_sizes=null, &$other_size=null) | |
Pick the next larger value from an array. More... | |
dimensions ($orig_width, $orig_height, &$new_width, &$new_height) | |
Calculate the dimensions for the image. More... | |
![]() | |
publish ($property, $visibility=self::READABLE) | |
Publish a property (or hide it again). More... | |
configure ($config) | |
Configure the object. More... | |
_get ($key) | |
Default getter if no specific setter is defined, and the property is also not published (readable). More... | |
_set ($key, $value) | |
Default setter if no specific setter is defined, and the property is also not published (writeable). More... | |
Additional Inherited Members | |
![]() | |
$_stream | |
$_config = null | |
![]() | |
$_published = [] | |
Published properties (key = name of property, value = visibility). More... | |
Definition at line 5 of file Resize.php.
|
protected |
Calculate the dimensions for the image.
Taking into account missing dimensions, restrictions, and locking.
int | $orig_width | Width of the original image. |
int | $orig_height | Height of the original image. |
int | $new_width | In: requested width; out: calculated width. |
int | $new_height | In: requested height; out: calculated height. |
Definition at line 37 of file Resize.php.
|
protected |
Pick the next larger value from an array.
array | $sizes | Allowed sizes. |
int | $size | Current size. |
array | $other_sizes | Allowed sizes for other dimension. |
int | $other_size | Current size for other dimension (will be adapted when locked). |
Definition at line 20 of file Resize.php.
read | ( | $handlers, | |
$filename, | |||
$params = null |
|||
) |
Definition at line 44 of file Resize.php.
$heights = [] |
Allowed heights (small to large; empty = all).
Definition at line 10 of file Resize.php.
$jpegQuality = 80 |
Definition at line 8 of file Resize.php.
$locked = true |
Allowed sizes will be locked together by key.
Definition at line 11 of file Resize.php.
$mode = IMG_BILINEAR_FIXED |
Definition at line 7 of file Resize.php.
$widths = [] |
Allowed widths (small to large; empty = all).
Definition at line 9 of file Resize.php.