Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
AdminController::delete - HistoryController::delete
作成日
7 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
12 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
36 行
すべてコピー
17 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
38 行
すべてコピー
public function delete()
public function delete()
{
{
コピー
コピー済み
コピー
コピー済み
// Check for request forgeries
$this->checkToken();
$this->checkToken();
// Get items to remove from the request.
// Get items to remove from the request.
$cid = $this->input->get('cid', array(), 'array');
$cid = $this->input->get('cid', array(), 'array');
if (!is_array($cid) || count($cid) < 1)
if (!is_array($cid) || count($cid) < 1)
{
{
コピー
コピー済み
コピー
コピー済み
$this->app->
getLogger()->warning
(Text::_(
$this->text_prefix . '
_NO_ITEM_SELECTED'),
array('category' => 'jerror'))
;
$this->app->
enqueueMessage
(Text::_(
'COM_CONTENTHISTORY
_NO_ITEM_SELECTED'),
'warning')
;
}
}
else
else
{
{
// Get the model.
// Get the model.
$model = $this->getModel();
$model = $this->getModel();
// Make sure the item ids are integers
// Make sure the item ids are integers
$cid = ArrayHelper::toInteger($cid);
$cid = ArrayHelper::toInteger($cid);
// Remove the items.
// Remove the items.
if ($model->delete($cid))
if ($model->delete($cid))
{
{
コピー
コピー済み
コピー
コピー済み
$this->setMessage(Text::plural(
$this->text_prefix . '
_N_ITEMS_DELETED', count($cid)));
$this->setMessage(Text::plural(
'COM_CONTENTHISTORY
_N_ITEMS_DELETED', count($cid)));
}
}
else
else
{
{
$this->setMessage($model->getError(), 'error');
$this->setMessage($model->getError(), 'error');
}
}
コピー
コピー済み
コピー
コピー済み
// Invoke the postDelete method to allow for the child class to access the model.
$this->postDeleteHook($model, $cid);
}
}
コピー
コピー済み
コピー
コピー済み
$this->setRedirect(
Route::_(
'index.php?option=
' . $this->
option
. '&
view
=' . $this->
view_list
, false
)
);
$this->setRedirect(
Route::_(
'index.php?option=
com_contenthistory&view=history&layout=modal&tmpl=component&item_id='
. $this->input->getInt('item_id') . '&type_id=
' . $this->
input->getInt('type_id')
. '&
type_alias
=' . $this->
input->getCmd('type_alias') . '&' . Session::getFormToken() . '=1'
, false
)
);
}
}
保存された差分
原文
ファイルを開く
public function delete() { // Check for request forgeries $this->checkToken(); // Get items to remove from the request. $cid = $this->input->get('cid', array(), 'array'); if (!is_array($cid) || count($cid) < 1) { $this->app->getLogger()->warning(Text::_($this->text_prefix . '_NO_ITEM_SELECTED'), array('category' => 'jerror')); } else { // Get the model. $model = $this->getModel(); // Make sure the item ids are integers $cid = ArrayHelper::toInteger($cid); // Remove the items. if ($model->delete($cid)) { $this->setMessage(Text::plural($this->text_prefix . '_N_ITEMS_DELETED', count($cid))); } else { $this->setMessage($model->getError(), 'error'); } // Invoke the postDelete method to allow for the child class to access the model. $this->postDeleteHook($model, $cid); } $this->setRedirect(Route::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false)); }
変更されたテキスト
ファイルを開く
public function delete() { $this->checkToken(); // Get items to remove from the request. $cid = $this->input->get('cid', array(), 'array'); if (!is_array($cid) || count($cid) < 1) { $this->app->enqueueMessage(Text::_('COM_CONTENTHISTORY_NO_ITEM_SELECTED'), 'warning'); } else { // Get the model. $model = $this->getModel(); // Make sure the item ids are integers $cid = ArrayHelper::toInteger($cid); // Remove the items. if ($model->delete($cid)) { $this->setMessage(Text::plural('COM_CONTENTHISTORY_N_ITEMS_DELETED', count($cid))); } else { $this->setMessage($model->getError(), 'error'); } } $this->setRedirect( Route::_( 'index.php?option=com_contenthistory&view=history&layout=modal&tmpl=component&item_id=' . $this->input->getInt('item_id') . '&type_id=' . $this->input->getInt('type_id') . '&type_alias=' . $this->input->getCmd('type_alias') . '&' . Session::getFormToken() . '=1', false ) ); }
違いを見つける