當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sfGuardUserPeer::doDeleteAll方法代碼示例

本文整理匯總了PHP中sfGuardUserPeer::doDeleteAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP sfGuardUserPeer::doDeleteAll方法的具體用法?PHP sfGuardUserPeer::doDeleteAll怎麽用?PHP sfGuardUserPeer::doDeleteAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在sfGuardUserPeer的用法示例。


在下文中一共展示了sfGuardUserPeer::doDeleteAll方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     NotificationConfigurationValuePeer::doDeleteAll();
     NotificationConfigurationPeer::doDeleteAll();
     NotificationTypeAttributePeer::doDeleteAll();
     NotificationTypePeer::doDeleteAll();
     sfGuardUserPeer::doDeleteAll();
 }
開發者ID:havvg,項目名稱:sfNotificationsPlugin,代碼行數:9,代碼來源:NotificationTest.php

示例2: dirname

 * This file is part of the sfPropelActAsRatableBehavior package.
 *
 * (c) 2009 Kasper Garnæs <kasper.garnaes@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
/**
 * The unit test assumes that sfGuardPlugin is installed and that the model 
 * class Item is defined. 
 */
include dirname(__FILE__) . '/../bootstrap/unit.php';
sfPropelBehavior::add('sfGuardUser', array('sfPropelActAsSlopeOneRaterBehavior'));
//Setup values
sfRatingPeer::doDeleteAll();
sfGuardUserPeer::doDeleteAll();
$users = array();
for ($i = 0; $i < 3; $i++) {
    $users[$i] = new sfGuardUser();
    $users[$i]->setUsername(rand());
    $users[$i]->save();
}
$items = ItemPeer::doSelect(new Criteria());
$items[0]->setRating(5, $users[0]->getId());
$items[1]->setRating(3, $users[0]->getId());
$items[2]->setRating(2, $users[0]->getId());
$items[0]->setRating(3, $users[1]->getId());
$items[1]->setRating(4, $users[1]->getId());
$items[1]->setRating(2, $users[2]->getId());
$items[2]->setRating(5, $users[2]->getId());
$t = new lime_test(10, new lime_output_color());
開發者ID:kasperg,項目名稱:symfony-propel-slope-one-recommendations-plugin,代碼行數:31,代碼來源:sfPropelSlopeOneRecommendationsTest.php


注:本文中的sfGuardUserPeer::doDeleteAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。