PHP Class Craft\Minimee_SettingsModel

Inheritance: extends craft\BaseModel, implements craft\Minimee_ISettingsModel
Afficher le fichier Open project: johndwells/craft.minimee Class Usage Examples

Méthodes publiques

Méthode Description
__toString ( ) : string
defineAttributes ( ) : Array
forceTrailingSlash ( String $string ) : String
getAttribute ( String $name, Bool $flattenValue = false ) : String | Bool Inject our model attribute accessors.
getBaseUrl ( ) : String
getCachePath ( ) : false | string
getCacheUrl ( ) : false | string
getCssPrependUrl ( ) : false | string
getCssReturnTemplate ( )
getFilesystemPath ( ) : String
getJsReturnTemplate ( )
getReturnType ( )
prepSettings ( $settings )
useResourceCache ( ) : Bool
validate ( Array $attributes = null, Bool $clearErrors = true ) : Bool Add custom validation rules to routine.
validateCachePathAndUrl ( ) : boolean | null Validate that cachePath and cacheUrl are both empty or non-empty.

Method Details

__toString() public méthode

public __toString ( ) : string
Résultat string

defineAttributes() public méthode

public defineAttributes ( ) : Array
Résultat Array

forceTrailingSlash() public méthode

public forceTrailingSlash ( String $string ) : String
$string String
Résultat String

getAttribute() public méthode

Inject our model attribute accessors.
public getAttribute ( String $name, Bool $flattenValue = false ) : String | Bool
$name String
$flattenValue Bool
Résultat String | Bool

getBaseUrl() public méthode

public getBaseUrl ( ) : String
Résultat String

getCachePath() public méthode

public getCachePath ( ) : false | string
Résultat false | string

getCacheUrl() public méthode

public getCacheUrl ( ) : false | string
Résultat false | string

getCssPrependUrl() public méthode

public getCssPrependUrl ( ) : false | string
Résultat false | string

getCssReturnTemplate() public méthode

getFilesystemPath() public méthode

public getFilesystemPath ( ) : String
Résultat String

getJsReturnTemplate() public méthode

public getJsReturnTemplate ( )

getReturnType() public méthode

public getReturnType ( )

prepSettings() public méthode

public prepSettings ( $settings )

useResourceCache() public méthode

public useResourceCache ( ) : Bool
Résultat Bool

validate() public méthode

Add custom validation rules to routine.
public validate ( Array $attributes = null, Bool $clearErrors = true ) : Bool
$attributes Array
$clearErrors Bool
Résultat Bool

validateCachePathAndUrl() public méthode

Validate that cachePath and cacheUrl are both empty or non-empty.
public validateCachePathAndUrl ( ) : boolean | null
Résultat boolean | null