PHP Class Microweber\Providers\MediaManager

显示文件 Open project: microweber/microweber

Public Properties

Property Type Description
$app
$download_remote_images
$no_cache
$table_prefix
$tables

Public Methods

Method Description
__construct ( $app = null )
create_media_dir ( $params )
delete ( $data )
delete_media_file ( $params )
get ( $params )
get_all ( $params )
get_by_id ( $id )
get_first_image_from_html ( $html )
get_picture ( $content_id, $for = 'content', $full = false )
pixum ( $width = 150, $height = false )
pixum_img ( )
relative_media_start_path ( )
reorder ( $data )
save ( $data )
thumbnail ( $src, $width = 200, $height = 200 )
thumbnail_img ( $params )
thumbnails_path ( )
upload ( $data )
upload_progress_check ( )

Private Methods

Method Description
_guess_media_type_from_file_ext ( $ext )
base64_to_file ( $data, $target )
svgScaleHack ( $svg, $minWidth, $minHeight )

Method Details

__construct() public method

public __construct ( $app = null )

create_media_dir() public method

public create_media_dir ( $params )

delete() public method

public delete ( $data )

delete_media_file() public method

public delete_media_file ( $params )

get() public method

public get ( $params )

get_all() public method

public get_all ( $params )

get_by_id() public method

public get_by_id ( $id )

get_first_image_from_html() public method

public get_first_image_from_html ( $html )

get_picture() public method

public get_picture ( $content_id, $for = 'content', $full = false )

pixum() public method

public pixum ( $width = 150, $height = false )

pixum_img() public method

public pixum_img ( )

relative_media_start_path() public method

reorder() public method

public reorder ( $data )

save() public method

public save ( $data )

thumbnail() public method

public thumbnail ( $src, $width = 200, $height = 200 )

thumbnail_img() public method

public thumbnail_img ( $params )

thumbnails_path() public method

public thumbnails_path ( )

upload() public method

public upload ( $data )

upload_progress_check() public method

Property Details

$app public_oe property

public $app

$download_remote_images public_oe property

public $download_remote_images

$no_cache public_oe property

public $no_cache

$table_prefix public_oe property

public $table_prefix

$tables public_oe property

public $tables