PHP Class Contao\ImageSize

Inheritance: extends Widget
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$arrAvailableOptions array Available options
$blnSubmitInput boolean Submit user input
$strTemplate string Template

Méthodes publiques

Méthode Description
__set ( string $strKey, mixed $varValue ) Add specific attributes
generate ( ) : string Generate the widget and return it as string

Méthodes protégées

Méthode Description
isValidOption ( mixed $varInput ) : boolean Check whether an input is one of the given options
validator ( mixed $varInput ) : mixed Trim values

Method Details

__set() public méthode

Add specific attributes
public __set ( string $strKey, mixed $varValue )
$strKey string
$varValue mixed

generate() public méthode

Generate the widget and return it as string
public generate ( ) : string
Résultat string

isValidOption() protected méthode

Check whether an input is one of the given options
protected isValidOption ( mixed $varInput ) : boolean
$varInput mixed The input string or array
Résultat boolean True if the selected option exists

validator() protected méthode

Trim values
protected validator ( mixed $varInput ) : mixed
$varInput mixed
Résultat mixed

Property Details

$arrAvailableOptions protected_oe property

Available options
protected array $arrAvailableOptions
Résultat array

$blnSubmitInput protected_oe property

Submit user input
protected bool $blnSubmitInput
Résultat boolean

$strTemplate protected_oe property

Template
protected string $strTemplate
Résultat string