本文整理匯總了PHP中Gadget::setSortOrder方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gadget::setSortOrder方法的具體用法?PHP Gadget::setSortOrder怎麽用?PHP Gadget::setSortOrder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Gadget
的用法示例。
在下文中一共展示了Gadget::setSortOrder方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: up
public function up()
{
$gadget = new Gadget();
$gadget->setType('loginTop');
$gadget->setName('loginForm');
$gadget->setSortOrder(10);
$gadget->save();
}
示例2: up
public function up()
{
$criteria = new Criteria();
$criteria->add(GadgetPeer::TYPE, 'mobileLoginContents');
$criteria->add(GadgetPeer::NAME, 'loginForm');
if (!GadgetPeer::doSelectOne($criteria)) {
$gadget = new Gadget();
$gadget->setType('mobileLoginContents');
$gadget->setName('loginForm');
$gadget->setSortOrder(10);
$gadget->save();
}
}
示例3: up
public function up()
{
$eventNavigation = new Navigation();
$eventNavigation->setType('community');
$eventNavigation->setUri('communityEvent/listCommunity');
$eventNavigation->setSortOrder(6);
$eventNavigation->setCaption('Events', 'en');
$eventNavigation->setCaption('イベントリスト', 'ja_JP');
$gadget = new Gadget();
$gadget->setType('contents');
$gadget->setName('recentCommunityEventComment');
$gadget->setSortOrder(132);
$gadget->save();
$gadget = new Gadget();
$gadget->setType('mobileContents');
$gadget->setName('recentCommunityEventComment');
$gadget->setSortOrder(111);
$gadget->save();
}
示例4: up
public function up()
{
$gadget = new Gadget();
$gadget->setType('top');
$gadget->setName('birthdayBox');
$gadget->setSortOrder(0);
$gadget->save();
$gadget = new Gadget();
$gadget->setType('mobileTop');
$gadget->setName('birthdayBox');
$gadget->setSortOrder(0);
$gadget->save();
$gadget = new Gadget();
$gadget->setType('profileTop');
$gadget->setName('birthdayBox');
$gadget->setSortOrder(0);
$gadget->save();
$gadget = new Gadget();
$gadget->setType('mobileProfileTop');
$gadget->setName('birthdayBox');
$gadget->setSortOrder(0);
$gadget->save();
}