CommonITILTask::getSearchOptions PHP Method

getSearchOptions() public method

public getSearchOptions ( )
    function getSearchOptions()
    {
        $tab = array();
        $tab['common'] = __('Characteristics');
        $tab[1]['table'] = $this->getTable();
        $tab[1]['field'] = 'content';
        $tab[1]['name'] = __('Description');
        $tab[1]['datatype'] = 'text';
        $tab[2]['table'] = 'glpi_taskcategories';
        $tab[2]['field'] = 'name';
        $tab[2]['name'] = _n('Task category', 'Task categories', 1);
        $tab[2]['forcegroupby'] = true;
        $tab[2]['datatype'] = 'dropdown';
        $tab[3]['table'] = $this->getTable();
        $tab[3]['field'] = 'date';
        $tab[3]['name'] = __('Date');
        $tab[3]['datatype'] = 'datetime';
        if ($this->maybePrivate()) {
            $tab[4]['table'] = $this->getTable();
            $tab[4]['field'] = 'is_private';
            $tab[4]['name'] = __('Public followup');
            $tab[4]['datatype'] = 'bool';
        }
        $tab[5]['table'] = 'glpi_users';
        $tab[5]['field'] = 'name';
        $tab[5]['name'] = __('Technician');
        $tab[5]['datatype'] = 'dropdown';
        $tab[5]['right'] = 'own_ticket';
        $tab[6]['table'] = $this->getTable();
        $tab[6]['field'] = 'actiontime';
        $tab[6]['name'] = __('Total duration');
        $tab[6]['datatype'] = 'actiontime';
        $tab[6]['massiveaction'] = false;
        $tab[7]['table'] = $this->getTable();
        $tab[7]['field'] = 'state';
        $tab[7]['name'] = __('Status');
        $tab[7]['datatype'] = 'specific';
        $tab[8]['table'] = 'glpi_groups';
        $tab[8]['field'] = 'completename';
        $tab[8]['name'] = __('Group in charge of the task');
        $tab[8]['datatype'] = 'dropdown';
        $tab[8]['condition'] = 'is_task';
        return $tab;
    }