Summary
- File
- Package hierarchy IO\Image
- Class hierarchy \FileSystemElement \Image
This class allows you to obtain informations on an image.
This class allows you to obtain informations on an image.
__construct(string $path)
Builds a FileSystemElement object from the path of the element.
string | $path | Path of the element |
None found |
exists() : boolean
Allows you to know if the file system element exists.
True if the file exists, else, false.
None found |
get_path() : string
Returns the element full path.
The element full path.
None found |
get_path_from_root() : string
Returns the element path from the phpboost root.
The element from the phpboost root.
None found |
get_name() : string
Returns the element name.
The element name.
None found |
is_writable(boolean $force_chmod = false) : true
Returns true if the file or the folder is writable.
boolean | $force_chmod | If true, then, chmod will be forced to 777 if not writable. |
if the file or the folder is writable.
None found |
change_chmod(integer $chmod) : true
Changes the chmod of the element.
integer | $chmod | The new chmod of the file. Put a 0 at the begening of the number to indicate to the PHP parser that it's an octal value. |
if the chmod has been successfully changed.
None found |
delete()
None found |
get_width()
None found |
get_height()
None found |
get_mime_type()
None found |
get_size() : \Size
Return Size image
image in bytes
None found |
get_name_and_extension()
None found |
get_extension()
None found |
get_folder_image()
None found |
get_properties() : Array
Return Array value properties of the image
properties
None found |
$path : string
None found |
$properties :
None found |