Image
class Image extends Base
Shop3 Imageproperty class.
Constants
KEY_TYPE |
|
KEY_WIDTH |
|
KEY_HEIGHT |
|
KEY_CONTAINER |
|
KEY_FORMAT |
|
KEY_QUALITY |
|
KEY_BACKGROUNDCOLOR |
|
KEY_GLOBALS |
|
KEY_NAME |
|
KEY_VALUE |
|
Properties
protected | $_required | ||
protected | $_required_globals |
Methods
Contructor.
Adds a image to the data array.
Adding multiple images at once.
Removes a image from the data array by type.
Validates a image array and throws a exception with the failure.
Checks if a image with that type already exists.
Returns all Images.
Adds a global image property to the class.
Adding multiple globals at once.
Removes a global from the data array by type.
Validates a name array and throws a exception with the failure.
Checks if a image with that type already exists.
Details
at line 53
__construct(array $images = array())
Contructor.
at line 75
addImage(string $type, integer $width, integer $height, boolean $container, string $format, integer $quality, string $backgroundcolor)
Adds a image to the data array.
at line 99
addImages(array $images)
Adding multiple images at once.
at line 115
delImage(string $type)
Removes a image from the data array by type.
at line 129
boolean
validateImageArray(array $image)
Validates a image array and throws a exception with the failure.
at line 148
protected Boolean
existsImage(string $type)
Checks if a image with that type already exists.
at line 158
array
getImages()
Returns all Images.
at line 169
addGlobal(string $name, mixed $value)
Adds a global image property to the class.
at line 185
addGlobals(array $globals)
Adding multiple globals at once.
at line 199
delGlobal(string $global)
Removes a global from the data array by type.
at line 213
boolean
validateGlobalArray(array $global)
Validates a name array and throws a exception with the failure.
at line 232
protected Boolean
existsGlobal(string $type)
Checks if a image with that type already exists.