PHP Class Traq\Helpers\TicketFilters

Author: Jack P.
Show file Open project: nirix/traq Class Usage Examples

Public Methods

Method Description
containsFilterSelectOptions ( ) : array Returns contains/doesn't contain options for the Form::select helper.
customFieldFiltersFor ( Project $project ) : array Returns an array of custom field ticket filters for the specified project.
filters ( ) : array Returns an array of available ticket filters.
filtersFor ( Project $project ) : array Returns an array of all ticket filters, including custom fields for the project.
isIsNotSelectOptions ( ) : array Returns is/is not options for the Form::select helper.
selectOptions ( Project $project = null ) : array Returns an array of available ticket filters formatted for Form::select().
selectOptionsFor ( string $filter, Project $project ) : array Returns options for the specific ticket filter.

Method Details

containsFilterSelectOptions() public static method

Returns contains/doesn't contain options for the Form::select helper.
public static containsFilterSelectOptions ( ) : array
return array

customFieldFiltersFor() public static method

Returns an array of custom field ticket filters for the specified project.
public static customFieldFiltersFor ( Project $project ) : array
$project Traq\Models\Project
return array

filters() public static method

Returns an array of available ticket filters.
Author: Jack P.
public static filters ( ) : array
return array

filtersFor() public static method

Returns an array of all ticket filters, including custom fields for the project.
public static filtersFor ( Project $project ) : array
$project Traq\Models\Project
return array

isIsNotSelectOptions() public static method

Returns is/is not options for the Form::select helper.
public static isIsNotSelectOptions ( ) : array
return array

selectOptions() public static method

Returns an array of available ticket filters formatted for Form::select().
public static selectOptions ( Project $project = null ) : array
$project Traq\Models\Project
return array

selectOptionsFor() public static method

Returns options for the specific ticket filter.
public static selectOptionsFor ( string $filter, Project $project ) : array
$filter string
$project Traq\Models\Project
return array