PHP Class AttributeFilter

Inheritance: extends CComponent
Datei anzeigen Open project: yupe/yupe Class Usage Examples

Public Properties

Property Type Description
$checkboxTemplate string
$dropdownTemplate string
$numberTemplate string
$stringTemplate string

Public Methods

Method Description
getDropdownOptionName ( AttributeOption $option ) : null | string
getFieldName ( Attribute $attribute, null $mode = null ) : null | string
getFieldValue ( Attribute $attribute, null $mode = null ) : mixed
getIsDropdownOptionChecked ( AttributeOption $option, mixed $value ) : mixed
getMainAttributesForSearchFromQuery ( CHttpRequest $request, array $append = [] ) : array | mixed
getMainSearchParams ( ) : array
getMainSearchParamsValue ( $name, null $suffix = null, CHttpRequest $request ) : mixed | null
getTypeAttributesForSearchFromQuery ( CHttpRequest $request ) : array
isFieldChecked ( Attribute $attribute, null $value = null ) : boolean
isMainSearchParamChecked ( $paramName, $value, CHttpRequest $request ) : boolean

Method Details

getDropdownOptionName() public method

public getDropdownOptionName ( AttributeOption $option ) : null | string
$option AttributeOption
return null | string

getFieldName() public method

public getFieldName ( Attribute $attribute, null $mode = null ) : null | string
$attribute Attribute
$mode null
return null | string

getFieldValue() public method

public getFieldValue ( Attribute $attribute, null $mode = null ) : mixed
$attribute Attribute
$mode null
return mixed

getIsDropdownOptionChecked() public method

public getIsDropdownOptionChecked ( AttributeOption $option, mixed $value ) : mixed
$option AttributeOption
$value mixed
return mixed

getMainAttributesForSearchFromQuery() public method

public getMainAttributesForSearchFromQuery ( CHttpRequest $request, array $append = [] ) : array | mixed
$request CHttpRequest
$append array
return array | mixed

getMainSearchParams() public method

public getMainSearchParams ( ) : array
return array

getMainSearchParamsValue() public method

public getMainSearchParamsValue ( $name, null $suffix = null, CHttpRequest $request ) : mixed | null
$name
$suffix null
$request CHttpRequest
return mixed | null

getTypeAttributesForSearchFromQuery() public method

public getTypeAttributesForSearchFromQuery ( CHttpRequest $request ) : array
$request CHttpRequest
return array

isFieldChecked() public method

public isFieldChecked ( Attribute $attribute, null $value = null ) : boolean
$attribute Attribute
$value null
return boolean

isMainSearchParamChecked() public method

public isMainSearchParamChecked ( $paramName, $value, CHttpRequest $request ) : boolean
$paramName
$value
$request CHttpRequest
return boolean

Property Details

$checkboxTemplate public_oe property

public string $checkboxTemplate
return string

$dropdownTemplate public_oe property

public string $dropdownTemplate
return string

$numberTemplate public_oe property

public string $numberTemplate
return string

$stringTemplate public_oe property

public string $stringTemplate
return string