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

  • Announcement
  • Approval
  • Cache
  • Credit
  • CreditLog
  • CreditRule
  • CreditRuleLog
  • CreditRuleLogField
  • IpBanned
  • LoginTemplate
  • Menu
  • Nav
  • Page
  • Stamp
  • Syscache
  • Syscode

Class Approval

CActiveRecord
Extended by application\core\model\Model
Extended by application\modules\dashboard\model\Approval
Namespace: application\modules\dashboard\model
Copyright: Copyright © 2012-2013 IBOS Inc
Author: gzhzh gzhzh@ibos.com.cn
Located at system/modules/dashboard/model/Approval.php

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public
# fetchAllApproval( )

获得所有审批流程,按添加倒序

获得所有审批流程,按添加倒序

public array
# fetchNextApprovalUids( integer $id, integer $step )

获取下一步骤审核人uid数组,若已经是最后一步,返回成功标识

获取下一步骤审核人uid数组,若已经是最后一步,返回成功标识

Parameters

$id
审批流程id
$step
步骤(1,2,3,4,5)

Returns

array
public string
# getLevelNameByStep( integer $step )

获得步骤对应字段名

获得步骤对应字段名

Parameters

$step
步骤(1,2,3,4,5)

Returns

string
public array
# fetchApprovalUidsByIds( mix $ids )

根据主键ids获取所有步骤审核人uid数组

根据主键ids获取所有步骤审核人uid数组

Parameters

$ids
审批流程id数组或逗号隔开的字符串

Returns

array
public boolean
# deleteApproval( integer $id )

删除审批流程,删除后更新指向该审批流程的所有分类

删除审批流程,删除后更新指向该审批流程的所有分类

Parameters

$id
审批流程id

Returns

boolean
public array
# fetchAllUidsByIds( mixed $ids )

根据审核ids获取每个审核流程的审核人uid数组,以审核id作为键值,该审核id下的所有审核者uid为键值返回

根据审核ids获取每个审核流程的审核人uid数组,以审核id作为键值,该审核id下的所有审核者uid为键值返回

Parameters

$ids
审核流程ids

Returns

array

Methods inherited from application\core\model\Model

add(), beforeDelete(), create(), deleteByPk(), fetch(), fetchAll(), fetchAllByAttributes(), fetchAllByPk(), fetchAllSortByPk(), fetchByAttributes(), fetchByPk(), fetchCache(), fetchCaches(), getCacheKey(), getIsAllowCache(), getMaxId(), getModelClass(), init(), modify(), remove(), updateAll(), updateByPk()

Properties summary

Properties inherited from application\core\model\Model

$allowCache, $cacheLife

IBOS open source API documentation generated by ApiGen