PHP Class WP_Image_Editor_Mock

Inheritance: extends WP_Image_Editor
显示文件 Open project: lucatume/wp-browser Class Usage Examples

Public Properties

Property Type Description
$load_return
$save_return
$test_return

Public Methods

Method Description
crop ( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false )
flip ( $horz, $vert )
load ( )
multi_resize ( $sizes )
resize ( $max_w, $max_h, $crop = false )
rotate ( $angle )
save ( $destfilename = null, $mime_type = null )
set_mime_type ( $mime_type = null ) Allow testing of jpeg_quality filter.
stream ( $mime_type = null )
supports_mime_type ( $mime_type )
test ( $args = [] )

Method Details

crop() public method

public crop ( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false )

flip() public method

public flip ( $horz, $vert )

load() public method

public load ( )

multi_resize() public method

public multi_resize ( $sizes )

resize() public method

public resize ( $max_w, $max_h, $crop = false )

rotate() public method

public rotate ( $angle )

save() public method

public save ( $destfilename = null, $mime_type = null )

set_mime_type() public method

Allow testing of jpeg_quality filter.
public set_mime_type ( $mime_type = null )

stream() public method

public stream ( $mime_type = null )

supports_mime_type() public static method

public static supports_mime_type ( $mime_type )

test() public static method

public static test ( $args = [] )

Property Details

$load_return public_oe static_oe property

public static $load_return

$save_return public_oe static_oe property

public static $save_return

$test_return public_oe static_oe property

public static $test_return