当前位置: 首页>>代码示例>>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;未经允许,请勿转载。