Profile::dropdownHelpdeskItemtypes PHP Method

dropdownHelpdeskItemtypes() static public method

Dropdown profiles which have rights under the active one
static public dropdownHelpdeskItemtypes ( $options )
$options array of possible options: - name : string / name of the select (default is profiles_id) - values : array of values
    static function dropdownHelpdeskItemtypes($options)
    {
        global $CFG_GLPI;
        $p['name'] = 'helpdesk_item_type';
        $p['values'] = array();
        $p['display'] = true;
        if (is_array($options) && count($options)) {
            foreach ($options as $key => $val) {
                $p[$key] = $val;
            }
        }
        $values = self::getHelpdeskItemtypes();
        $p['multiple'] = true;
        $p['size'] = 3;
        return Dropdown::showFromArray($p['name'], $values, $p);
    }