Class MOXMAN_AutoFormat_Plugin
Inheritance | MOXMAN_AutoFormat_Plugin |
---|---|
Implements | MOXMAN_IPlugin |
....
Format parameters: %f - Filename. %e - Extension. %w - Image width. %h - Image height. %tw - Target width. %th - Target height. %ow - Original width. %oh - Original height.
Example: 320x240|gif=%f%w%h.gif,320x240=%f%w%h.%e
Public Methods
Method | Description | Defined By |
---|---|---|
applyFormat() | Applies formats to an image. | MOXMAN_AutoFormat_Plugin |
init() | MOXMAN_AutoFormat_Plugin | |
onBeforeFileAction() | MOXMAN_AutoFormat_Plugin | |
onFileAction() | MOXMAN_AutoFormat_Plugin | |
removeFormat() | Removes formats from an image. | MOXMAN_AutoFormat_Plugin |
Method Details
Applies formats to an image.
public void applyFormat ( MOXMAN_Vfs_IFile $file ) | ||
$file | MOXMAN_Vfs_IFile | File to generate images for. |
public void init ( ) |
public void onBeforeFileAction ( MOXMAN_Vfs_FileActionEventArgs $args ) | ||
$args |
public void onFileAction ( MOXMAN_Vfs_FileActionEventArgs $args ) | ||
$args |
Removes formats from an image.
public void removeFormat ( MOXMAN_Vfs_IFile $file ) | ||
$file | MOXMAN_Vfs_IFile | File to generate images for. |