MDL-31901 file_info_stored now provides access to the wrapped stored_file's get_imageinfo() method
This commit is contained in:
committed by
Marina Glancy
parent
b7725e30c2
commit
0dbf6c88bb
@@ -187,6 +187,16 @@ class file_info_stored extends file_info {
|
||||
return $this->lf->get_filesize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns width, height and mimetype of the stored image, or false
|
||||
*
|
||||
* @see stored_file::get_imageinfo()
|
||||
* @return array|false
|
||||
*/
|
||||
public function get_imageinfo() {
|
||||
return $this->lf->get_imageinfo();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns mimetype
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user