IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Api
  • ApiCode
  • Attach
  • Cache
  • Cloud
  • Convert
  • Credit
  • Database
  • DateTime
  • Env
  • File
  • Ftp
  • IBOS
  • Image
  • Mail
  • Module
  • Org
  • Page
  • PHPExcel
  • String
  • System
  • Upgrade
  • Url
  • WebSite
  • Xml
  • XMLParse

Class Credit

CApplicationComponent
Extended by application\core\utils\System
Extended by application\core\utils\Credit
Namespace: application\core\utils
Located at system/core/utils/Credit.php

Methods summary

public static object
# getInstance( $className = __CLASS__ )

单例化api

单例化api

Returns

object

Overrides

application\core\utils\System::getInstance
public
# setExtraSql( $extra )
public array
# execRule( string $action, integer $uid = 0, string $needle = '', integer $coef = 1, integer $update = 1 )

积分执行函数

积分执行函数

Parameters

$action
积分模块
$uid
用户ID
$needle
防重复
$coef
积分放大位数(乘以)
$update
是否及时更新数据表

Returns

array
积分规则
public
# updateCreditByRule( $rule, $uids = 0, $coef = 1 )
public
# updateUserCount( type $creditArr, type $uids = 0, type $checkGroup = true, type $ruletxt = '' )

Parameters

$creditArr
$uids
$checkGroup
$ruletxt
public integer
# countCredit( integer $uid, boolean $update = true )

Parameters

$uid
$update

Returns

integer
public integer
# checkUserGroup( integer $uid )

检查用户组更新

检查用户组更新

Parameters

$uid

Returns

integer
protected
# updateCheating( type $ruleLog, type $needle, type $newCycle )

Parameters

$ruleLog
$needle
$newCycle
public type
# addLogArr( type $logArr, type $rule, type $isSql = 0 )

Parameters

$logArr
$rule
$isSql

Returns

type
public array
# getRule( string $action )

获取规则

获取规则

Parameters

$action

Returns

array
public array
# getRuleLog( integer $rid, integer $uid = 0 )

获取一条积分日志记录

获取一条积分日志记录

Parameters

$rid
规则ID
$uid
用户ID

Returns

array
public array
# getCheckLogByClId( integer $clid, integer $uid = 0 )

Parameters

$clid
$uid

Returns

array
public array
# getExtCredits( )

Returns

array
protected boolean
# checkCheating( type $ruleLog, type $needle, type $checkType )

Parameters

$ruleLog
$needle
$checkType

Returns

boolean
IBOS open source API documentation generated by ApiGen