PHP Class Query, candycane

Inheritance: extends CActiveRecord
Mostrar archivo Open project: yandod/candycane Class Usage Examples

Public Properties

Property Type Description
$actsAs
$available_filters
$belongsTo
$column_names
$default_show_filters
$filters
$name
$operators
$operators_by_filter_type
$validate

Public Methods

Method Description
__construct ( $id = false, $table = null, $ds = null )
add_filter ( $field, $operator, $values )
add_short_filter ( $field, $expression )
available_columns ( )
available_filters ( $project = [], $currentuser = [] )
beforeSave ( ) #end
date_range_clause ( $model, $field, $from, $to ) # # Returns a SQL clause for a date or datetime field.
getFilters ( $query = false )
get_filter_cond ( $model, $field, $operator, $values ) #
has_filter ( $field )
label_for ( $field )
operator_for ( $field )
project_statement ( $query ) #
show_filters ( $options = [] )
validate_filters ( ) #
values_for ( $field )

Method Details

__construct() public method

public __construct ( $id = false, $table = null, $ds = null )

add_filter() public method

public add_filter ( $field, $operator, $values )

add_short_filter() public method

public add_short_filter ( $field, $expression )

available_columns() public method

public available_columns ( )

available_filters() public method

public available_filters ( $project = [], $currentuser = [] )

beforeSave() public method

#end
public beforeSave ( )

date_range_clause() public method

# # Returns a SQL clause for a date or datetime field.
public date_range_clause ( $model, $field, $from, $to )

getFilters() public method

public getFilters ( $query = false )

get_filter_cond() public method

#
public get_filter_cond ( $model, $field, $operator, $values )

has_filter() public method

public has_filter ( $field )

label_for() public method

public label_for ( $field )

operator_for() public method

public operator_for ( $field )

project_statement() public method

#
public project_statement ( $query )

show_filters() public method

public show_filters ( $options = [] )

validate_filters() public method

#
public validate_filters ( )

values_for() public method

public values_for ( $field )

Property Details

$actsAs public_oe property

public $actsAs

$available_filters public_oe property

public $available_filters

$belongsTo public_oe property

public $belongsTo

$column_names public_oe property

public $column_names

$default_show_filters public_oe property

public $default_show_filters

$filters public_oe property

public $filters

$name public_oe property

public $name

$operators public_oe property

public $operators

$operators_by_filter_type public_oe property

public $operators_by_filter_type

$validate public_oe property

public $validate