👁 查看:opActivateBehavior.class.php
路径:/virtual/bigbrother/sns/lib/behavior/opActivateBehavior.class.php
大小:766 B · 修改:2010-08-10 13:59:42 · 权限:0644 · 可写
<?php
class opActivateBehavior
{
  static protected $enabled = true;

  public function doSelectStmt($class, Criteria $criteria, $con = null)
  {
    if (self::$enabled)
    {
      $criteria->add(call_user_func(array($class, 'translateFieldName'), 'is_active', BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_COLNAME), 0, Criteria::NOT_EQUAL);
    }
  }

  public function doCount($class, Criteria $criteria, $con = null)
  {
    if (self::$enabled)
    {
      $criteria->add(call_user_func(array($class, 'translateFieldName'), 'is_active', BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_COLNAME), 0, Criteria::NOT_EQUAL);
    }
  }

  public static function enable()
  {
    self::$enabled = true;
  }

  public static function disable()
  {
    self::$enabled = false;
  }
}
ページが見つかりませんでした – Lumiere Shop
ここを指しているリンクに誤りがあったようです。検索してみるのはいかがですか ?
お買い物カゴ