PHP Class Craft\Minimee_SettingsModel

Inheritance: extends craft\BaseModel, implements craft\Minimee_ISettingsModel
Datei anzeigen Open project: johndwells/craft.minimee Class Usage Examples

Public Methods

Method 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 method

public __toString ( ) : string
return string

defineAttributes() public method

public defineAttributes ( ) : Array
return Array

forceTrailingSlash() public method

public forceTrailingSlash ( String $string ) : String
$string String
return String

getAttribute() public method

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

getBaseUrl() public method

public getBaseUrl ( ) : String
return String

getCachePath() public method

public getCachePath ( ) : false | string
return false | string

getCacheUrl() public method

public getCacheUrl ( ) : false | string
return false | string

getCssPrependUrl() public method

public getCssPrependUrl ( ) : false | string
return false | string

getCssReturnTemplate() public method

getFilesystemPath() public method

public getFilesystemPath ( ) : String
return String

getJsReturnTemplate() public method

public getJsReturnTemplate ( )

getReturnType() public method

public getReturnType ( )

prepSettings() public method

public prepSettings ( $settings )

useResourceCache() public method

public useResourceCache ( ) : Bool
return Bool

validate() public method

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

validateCachePathAndUrl() public method

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