PermissionsController::_batch_del PHP Method

_batch_del() protected method

[ADMIN] 削除処理 (ajax)
protected _batch_del ( $ids ) : void
return void
    protected function _batch_del($ids)
    {
        if ($ids) {
            foreach ($ids as $id) {
                // メッセージ用にデータを取得
                $post = $this->Permission->read(null, $id);
                /* 削除処理 */
                if ($this->Permission->delete($id)) {
                    $message = 'アクセス制限設定「' . $post['Permission']['name'] . '」 を削除しました。';
                }
            }
        }
        return true;
    }