showMassiveActionsSubForm() static public method

See also: CommonDBTM::showMassiveActionsSubForm()
static public showMassiveActionsSubForm ( MassiveAction $ma )
$ma MassiveAction
コード例 #1
0
ファイル: group.class.php プロジェクト: korial29/glpi
 /**
  * @since version 0.85
  *
  * @see CommonDBTM::showMassiveActionsSubForm()
  **/
 static function showMassiveActionsSubForm(MassiveAction $ma)
 {
     $input = $ma->getInput();
     switch ($ma->getAction()) {
         case 'changegroup':
             if (isset($input['is_tech']) && isset($input['check_items_id']) && isset($input['check_itemtype'])) {
                 if ($group = getItemForItemtype($input['check_itemtype'])) {
                     if ($group->getFromDB($input['check_items_id'])) {
                         self::dropdown(array('entity' => $group->fields["entities_id"], 'used' => array($group->fields["id"]), 'condition' => $input['is_tech'] ? '`is_assign`' : '`is_itemgroup`'));
                         echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Move') . "'>";
                         return true;
                     }
                 }
             }
             return true;
     }
     return parent::showMassiveActionsSubForm($ma);
 }