PHP Class rex_media, redaxo

Inheritance: use trait rex_instance_pool_trait
Exibir arquivo Open project: redaxo/redaxo Class Usage Examples

Public Methods

Method Description
fileExists ( )
get ( string $name ) : null | self
getCategory ( ) : rex_media_category
getCategoryId ( ) : integer
getCreateDate ( ) : integer
getCreateUser ( ) : string
getDocTypes ( ) allowed filetypes
getExtension ( ) : string
getFileName ( ) : string
getFormattedSize ( ) : string
getHeight ( ) : integer
getId ( ) : integer
getImageTypes ( ) allowed image upload types
getOriginalFileName ( ) : string
getSize ( ) : integer
getTitle ( ) : string
getType ( ) : string
getUpdateDate ( ) : integer
getUpdateUser ( ) : string
getUrl ( ) : string
getValue ( $value )
getWidth ( ) : integer
hasValue ( $value )
isDocType ( $type )
isImage ( ) : boolean
isImageType ( $extension )
isPermitted ( ) : boolean Returns whether the element is permitted.
toImage ( array $params = [] ) : string
toLink ( string $attributes = '' ) : string

Method Details

fileExists() public method

public fileExists ( )

get() public static method

public static get ( string $name ) : null | self
$name string
return null | self

getCategory() public method

public getCategory ( ) : rex_media_category
return rex_media_category

getCategoryId() public method

public getCategoryId ( ) : integer
return integer

getCreateDate() public method

public getCreateDate ( ) : integer
return integer

getCreateUser() public method

public getCreateUser ( ) : string
return string

getDocTypes() public static method

allowed filetypes
public static getDocTypes ( )

getExtension() public method

public getExtension ( ) : string
return string

getFileName() public method

public getFileName ( ) : string
return string

getFormattedSize() public method

public getFormattedSize ( ) : string
return string

getHeight() public method

public getHeight ( ) : integer
return integer

getId() public method

public getId ( ) : integer
return integer

getImageTypes() public static method

allowed image upload types
public static getImageTypes ( )

getOriginalFileName() public method

public getOriginalFileName ( ) : string
return string

getSize() public method

public getSize ( ) : integer
return integer

getTitle() public method

public getTitle ( ) : string
return string

getType() public method

public getType ( ) : string
return string

getUpdateDate() public method

public getUpdateDate ( ) : integer
return integer

getUpdateUser() public method

public getUpdateUser ( ) : string
return string

getUrl() public method

public getUrl ( ) : string
return string

getValue() public method

public getValue ( $value )

getWidth() public method

public getWidth ( ) : integer
return integer

hasValue() public method

public hasValue ( $value )

isDocType() public static method

public static isDocType ( $type )

isImage() public method

public isImage ( ) : boolean
return boolean

isImageType() public static method

public static isImageType ( $extension )

isPermitted() public method

Returns whether the element is permitted.
public isPermitted ( ) : boolean
return boolean

toImage() public method

public toImage ( array $params = [] ) : string
$params array
return string