PHP Класс Craft\Minimee_SettingsModel

Наследование: extends craft\BaseModel, implements craft\Minimee_ISettingsModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__toString() публичный Метод

public __toString ( ) : string
Результат string

defineAttributes() публичный Метод

public defineAttributes ( ) : Array
Результат Array

forceTrailingSlash() публичный Метод

public forceTrailingSlash ( String $string ) : String
$string String
Результат String

getAttribute() публичный Метод

Inject our model attribute accessors.
public getAttribute ( String $name, Bool $flattenValue = false ) : String | Bool
$name String
$flattenValue Bool
Результат String | Bool

getBaseUrl() публичный Метод

public getBaseUrl ( ) : String
Результат String

getCachePath() публичный Метод

public getCachePath ( ) : false | string
Результат false | string

getCacheUrl() публичный Метод

public getCacheUrl ( ) : false | string
Результат false | string

getCssPrependUrl() публичный Метод

public getCssPrependUrl ( ) : false | string
Результат false | string

getCssReturnTemplate() публичный Метод

getFilesystemPath() публичный Метод

public getFilesystemPath ( ) : String
Результат String

getJsReturnTemplate() публичный Метод

public getJsReturnTemplate ( )

getReturnType() публичный Метод

public getReturnType ( )

prepSettings() публичный Метод

public prepSettings ( $settings )

useResourceCache() публичный Метод

public useResourceCache ( ) : Bool
Результат Bool

validate() публичный Метод

Add custom validation rules to routine.
public validate ( Array $attributes = null, Bool $clearErrors = true ) : Bool
$attributes Array
$clearErrors Bool
Результат Bool

validateCachePathAndUrl() публичный Метод

Validate that cachePath and cacheUrl are both empty or non-empty.
public validateCachePathAndUrl ( ) : boolean | null
Результат boolean | null