PHP Class Craft\MinimeePlugin

Inheritance: extends craft\BasePlugin
Mostrar archivo Open project: johndwells/craft.minimee

Public Methods

Method Description
addTwigExtension ( ) : Twig_Extension Register our Twig filter
defineSettings ( ) : Array We define our setting attributes by way of our own Minimee_SettingsModel.
getDescription ( ) : String
getDeveloper ( ) : String
getDeveloperUrl ( ) : String
getDocumentationUrl ( ) : String
getName ( ) : String
getReleaseFeedUrl ( ) : String
getResourcePath ( $path ) : String Enable ability to serve cache assets from resources/minimee folder
getSchemaVersion ( ) : String
getSettingsHtml ( ) : String Renders the settings form to configure Minimee
getVersion ( ) : String
hasCpSection ( ) : Bool
init ( ) : Void Autoloading, Dependency Injection, Hook & Event binding
log ( String $msg, String $level = LogLevel::Info, Bool $force = false ) : Void Logging any messages to Craft.
prepSettings ( $settings )
registerCachePaths ( ) Register our cache path that can then be deleted from CP

Protected Methods

Method Description
_autoload ( ) : Void Require any enums used across Minimee
_bindEvents ( ) : void Watch for the "createCache" event, and if in devMode, try to clean up any expired caches
_registerMinimeeDI ( ) : Void Registers all Dependency Injection

Method Details

_autoload() protected method

Require any enums used across Minimee
protected _autoload ( ) : Void
return Void

_bindEvents() protected method

Watch for the "createCache" event, and if in devMode, try to clean up any expired caches
protected _bindEvents ( ) : void
return void

_registerMinimeeDI() protected method

Registers all Dependency Injection
protected _registerMinimeeDI ( ) : Void
return Void

addTwigExtension() public method

Register our Twig filter
public addTwigExtension ( ) : Twig_Extension
return Twig_Extension

defineSettings() public method

We define our setting attributes by way of our own Minimee_SettingsModel.
public defineSettings ( ) : Array
return Array

getDescription() public method

public getDescription ( ) : String
return String

getDeveloper() public method

public getDeveloper ( ) : String
return String

getDeveloperUrl() public method

public getDeveloperUrl ( ) : String
return String

getDocumentationUrl() public method

public getDocumentationUrl ( ) : String
return String

getName() public method

public getName ( ) : String
return String

getReleaseFeedUrl() public method

public getReleaseFeedUrl ( ) : String
return String

getResourcePath() public method

Enable ability to serve cache assets from resources/minimee folder
public getResourcePath ( $path ) : String
return String

getSchemaVersion() public method

public getSchemaVersion ( ) : String
return String

getSettingsHtml() public method

Renders the settings form to configure Minimee
public getSettingsHtml ( ) : String
return String

getVersion() public method

public getVersion ( ) : String
return String

hasCpSection() public method

public hasCpSection ( ) : Bool
return Bool

init() public method

Autoloading, Dependency Injection, Hook & Event binding
public init ( ) : Void
return Void

log() public static method

Logging any messages to Craft.
public static log ( String $msg, String $level = LogLevel::Info, Bool $force = false ) : Void
$msg String
$level String
$force Bool
return Void

prepSettings() public method

public prepSettings ( $settings )

registerCachePaths() public method

Register our cache path that can then be deleted from CP
public registerCachePaths ( )