PHP Class Craft\MinimeePlugin

Inheritance: extends craft\BasePlugin
Afficher le fichier Open project: johndwells/craft.minimee

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Require any enums used across Minimee
protected _autoload ( ) : Void
Résultat Void

_bindEvents() protected méthode

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

_registerMinimeeDI() protected méthode

Registers all Dependency Injection
protected _registerMinimeeDI ( ) : Void
Résultat Void

addTwigExtension() public méthode

Register our Twig filter
public addTwigExtension ( ) : Twig_Extension
Résultat Twig_Extension

defineSettings() public méthode

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

getDescription() public méthode

public getDescription ( ) : String
Résultat String

getDeveloper() public méthode

public getDeveloper ( ) : String
Résultat String

getDeveloperUrl() public méthode

public getDeveloperUrl ( ) : String
Résultat String

getDocumentationUrl() public méthode

public getDocumentationUrl ( ) : String
Résultat String

getName() public méthode

public getName ( ) : String
Résultat String

getReleaseFeedUrl() public méthode

public getReleaseFeedUrl ( ) : String
Résultat String

getResourcePath() public méthode

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

getSchemaVersion() public méthode

public getSchemaVersion ( ) : String
Résultat String

getSettingsHtml() public méthode

Renders the settings form to configure Minimee
public getSettingsHtml ( ) : String
Résultat String

getVersion() public méthode

public getVersion ( ) : String
Résultat String

hasCpSection() public méthode

public hasCpSection ( ) : Bool
Résultat Bool

init() public méthode

Autoloading, Dependency Injection, Hook & Event binding
public init ( ) : Void
Résultat Void

log() public static méthode

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

prepSettings() public méthode

public prepSettings ( $settings )

registerCachePaths() public méthode

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