Property | Type | Description | |
---|---|---|---|
$column | array | ||
$condition | string | ||
$control | |||
$formatValue | string | ||
$optional | mixed | ||
$where | callable | ||
$wrapperPrototype | Nette\Utils\Html |
Method | Description | ||
---|---|---|---|
__construct ( |
|||
__getCondition ( mixed $value ) : Grido\Components\Filters\Condition | boolean | |||
changeValue ( string $value ) : string | Value representation in URI. | ||
getColumn ( ) : array | |||
getCondition ( ) : string | |||
getControl ( ) : |
|||
getWrapperPrototype ( ) : Nette\Utils\Html | Returns wrapper prototype ( | html tag). | |
setColumn ( string $column, string $operator = Condition::OPERATOR_OR ) : |
Map to database column. | ||
setCondition ( $condition ) : |
Sets custom condition. | ||
setDefaultValue ( string $value ) : |
Sets default value. | ||
setFormatValue ( string $format ) : |
Sets custom format value. | ||
setWhere ( callable $callback ) : |
Sets custom "sql" where. |
Method | Description | |
---|---|---|
formatValue ( string $value ) : string | Format value for database. | |
getFormControl ( ) |
public __construct ( |
||
$grid | ||
$name | string | |
$label | string |
public __getCondition ( mixed $value ) : Grido\Components\Filters\Condition | boolean | ||
$value | mixed | |
return | Grido\Components\Filters\Condition | boolean |
public changeValue ( string $value ) : string | ||
$value | string | |
return | string |
protected formatValue ( string $value ) : string | ||
$value | string | |
return | string |
public getControl ( ) : |
||
return |
public getWrapperPrototype ( ) : Nette\Utils\Html | ||
return | Nette\Utils\Html |
public setCondition ( $condition ) : |
||
$condition | ||
return |
public setDefaultValue ( string $value ) : |
||
$value | string | |
return |
public setFormatValue ( string $format ) : |
||
$format | string | for example: "%%value%" |
return |
protected BaseControl,Nette\Forms\Controls $control | ||
return |