Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
https://joomla.stackexchange.com/q/26382/12352
作成日
7 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
10 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
41 行
すべてコピー
6 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
39 行
すべてコピー
class BookstoreRouter extends JComponentRouterView
class BookstoreRouter extends JComponentRouterView
{
{
public function __construct($app = null, $menu = null)
public function __construct($app = null, $menu = null)
{
{
$books = new JComponentRouterViewconfiguration('books');
$books = new JComponentRouterViewconfiguration('books');
コピー
コピー済み
コピー
コピー済み
$books->setNestable();
$this->registerView($books);
$this->registerView($books);
$book = new JComponentRouterViewconfiguration('book');
$book = new JComponentRouterViewconfiguration('book');
$book->setKey('id')->setParent($books);
$book->setKey('id')->setParent($books);
$this->registerView($book);
$this->registerView($book);
parent::__construct($app, $menu);
parent::__construct($app, $menu);
$this->attachRule(new JComponentRouterRulesMenu($this));
$this->attachRule(new JComponentRouterRulesMenu($this));
$this->attachRule(new JComponentRouterRulesStandard($this));
$this->attachRule(new JComponentRouterRulesStandard($this));
$this->attachRule(new JComponentRouterRulesNomenu($this));
$this->attachRule(new JComponentRouterRulesNomenu($this));
}
}
public function getBookSegment($id, $query)
public function getBookSegment($id, $query)
{
{
コピー
コピー済み
コピー
コピー済み
if (
!
strpos($
id
, ':')
)
if (
strpos($
query['id']
, ':')
=== false)
{
{
$db = JFactory::getDbo();
$db = JFactory::getDbo();
$dbquery = $db->getQuery(true);
$dbquery = $db->getQuery(true);
コピー
コピー済み
コピー
コピー済み
$dbquery->select($
dbquery->qn
('alias'))
$dbquery->select($
db->quoteName
('alias'))
->from($
dbquery->qn
('#__bookstore_books'))
->from($
db->quoteName
('#__bookstore_books'))
->where('id = ' . $
dbquery->q
($id));
->where('id = ' . $
db->quote
($id));
$db->setQuery($dbquery);
$db->setQuery($dbquery);
$id .= ':' . $db->loadResult();
$id .= ':' . $db->loadResult();
}
}
コピー
コピー済み
コピー
コピー済み
return array((int)
$id => $id);
return array((int)
$id => $id);
}
}
public function getBookId($segment, $query)
public function getBookId($segment, $query)
{
{
コピー
コピー済み
コピー
コピー済み
return (int)
$segment;
return (int)
$segment;
}
}
}
}
保存された差分
原文
ファイルを開く
class BookstoreRouter extends JComponentRouterView { public function __construct($app = null, $menu = null) { $books = new JComponentRouterViewconfiguration('books'); $books->setNestable(); $this->registerView($books); $book = new JComponentRouterViewconfiguration('book'); $book->setKey('id')->setParent($books); $this->registerView($book); parent::__construct($app, $menu); $this->attachRule(new JComponentRouterRulesMenu($this)); $this->attachRule(new JComponentRouterRulesStandard($this)); $this->attachRule(new JComponentRouterRulesNomenu($this)); } public function getBookSegment($id, $query) { if (!strpos($id, ':')) { $db = JFactory::getDbo(); $dbquery = $db->getQuery(true); $dbquery->select($dbquery->qn('alias')) ->from($dbquery->qn('#__bookstore_books')) ->where('id = ' . $dbquery->q($id)); $db->setQuery($dbquery); $id .= ':' . $db->loadResult(); } return array((int) $id => $id); } public function getBookId($segment, $query) { return (int) $segment; } }
変更されたテキスト
ファイルを開く
class BookstoreRouter extends JComponentRouterView { public function __construct($app = null, $menu = null) { $books = new JComponentRouterViewconfiguration('books'); $this->registerView($books); $book = new JComponentRouterViewconfiguration('book'); $book->setKey('id')->setParent($books); $this->registerView($book); parent::__construct($app, $menu); $this->attachRule(new JComponentRouterRulesMenu($this)); $this->attachRule(new JComponentRouterRulesStandard($this)); $this->attachRule(new JComponentRouterRulesNomenu($this)); } public function getBookSegment($id, $query) { if (strpos($query['id'], ':') === false) { $db = JFactory::getDbo(); $dbquery = $db->getQuery(true); $dbquery->select($db->quoteName('alias')) ->from($db->quoteName('#__bookstore_books')) ->where('id = ' . $db->quote($id)); $db->setQuery($dbquery); $id .= ':' . $db->loadResult(); } return array((int)$id => $id); } public function getBookId($segment, $query) { return (int)$segment; } }
違いを見つける