PHP Class Contao\ImageSize

Inheritance: extends Widget
Show file Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$arrAvailableOptions array Available options
$blnSubmitInput boolean Submit user input
$strTemplate string Template

Public Methods

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

Protected Methods

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

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

generate() public method

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

isValidOption() protected method

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

validator() protected method

Trim values
protected validator ( mixed $varInput ) : mixed
$varInput mixed
return mixed

Property Details

$arrAvailableOptions protected property

Available options
protected array $arrAvailableOptions
return array

$blnSubmitInput protected property

Submit user input
protected bool $blnSubmitInput
return boolean

$strTemplate protected property

Template
protected string $strTemplate
return string