Problem_Ticket::showMassiveActionsSubForm PHP Method

showMassiveActionsSubForm() static public method

See also: CommonDBTM::showMassiveActionsSubForm()
static public showMassiveActionsSubForm ( MassiveAction $ma )
$ma MassiveAction
    static function showMassiveActionsSubForm(MassiveAction $ma)
    {
        global $CFG_GLPI;
        switch ($ma->getAction()) {
            case 'add_task':
                $tasktype = 'TicketTask';
                if ($ttype = getItemForItemtype($tasktype)) {
                    $ttype->showFormMassiveAction();
                    return true;
                }
                return false;
            case "solveticket":
                $problem = new Problem();
                $input = $ma->getInput();
                if (isset($input['problems_id']) && $problem->getFromDB($input['problems_id'])) {
                    Ticket::showMassiveSolutionForm($problem->getEntityID());
                    echo "<br><br>";
                    echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction'));
                    return true;
                }
                return false;
        }
        return parent::showMassiveActionsSubForm($ma);
    }