forked from leftypol/leftypol
MediaHandler.php: simplify interface
This commit is contained in:
parent
db3b6984f9
commit
4dfdbd0818
1 changed files with 4 additions and 8 deletions
|
@ -53,10 +53,8 @@ interface MediaHandler {
|
||||||
|
|
||||||
public function installMediaAndGenerateThumb(
|
public function installMediaAndGenerateThumb(
|
||||||
mixed $handle,
|
mixed $handle,
|
||||||
string $media_preferred_out_file_dir,
|
string $media_preferred_out_file_basepath,
|
||||||
string $media_preferred_out_file_name,
|
string $preferred_out_file_basepath,
|
||||||
string $thumb_preferred_out_file_dir,
|
|
||||||
string $thumb_preferred_out_file_name,
|
|
||||||
string $thumb_preferred_out_mime,
|
string $thumb_preferred_out_mime,
|
||||||
int $thumb_max_width,
|
int $thumb_max_width,
|
||||||
int $thumb_max_height
|
int $thumb_max_height
|
||||||
|
@ -66,8 +64,7 @@ interface MediaHandler {
|
||||||
* Generates a thumbnail from the given file.
|
* Generates a thumbnail from the given file.
|
||||||
*
|
*
|
||||||
* @param mixed $handle An opaque handle obtained from {@link openHandle}.
|
* @param mixed $handle An opaque handle obtained from {@link openHandle}.
|
||||||
* @param string $preferred_out_file_dir
|
* @param string $preferred_out_file_basepath Desired path of the output file, WITHOUT extension.
|
||||||
* @param string $preferred_out_file_name
|
|
||||||
* @param string $preferred_out_mime
|
* @param string $preferred_out_mime
|
||||||
* @param int $max_width
|
* @param int $max_width
|
||||||
* @param int $max_height
|
* @param int $max_height
|
||||||
|
@ -76,8 +73,7 @@ interface MediaHandler {
|
||||||
*/
|
*/
|
||||||
public function generateThumb(
|
public function generateThumb(
|
||||||
mixed $handle,
|
mixed $handle,
|
||||||
string $preferred_out_file_dir,
|
string $preferred_out_file_basepath,
|
||||||
string $preferred_out_file_name,
|
|
||||||
string $preferred_out_mime,
|
string $preferred_out_mime,
|
||||||
int $max_width,
|
int $max_width,
|
||||||
int $max_height
|
int $max_height
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue