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

  • Vote
  • VoteItem
  • VoteItemCount

Class Vote

CActiveRecord
Extended by application\core\model\Model
Extended by application\modules\vote\model\Vote
Namespace: application\modules\vote\model
Copyright: Copyright © 2008-2013 IBOS Inc
Author: gzwwb gzwwb@ibos.com.cn
Located at system/modules/vote/model/Vote.php

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public array
# fetchVote( string $relatedModule, integer $relatedId )

通过相关模块名称和相关id取得取得一行投票记录及这行记录的所有相关投票项

通过相关模块名称和相关id取得取得一行投票记录及这行记录的所有相关投票项

Parameters

$relatedModule
相关模块名称
$relatedId
相关模块id

Returns

array
public
# fetchUserVoteCount( string $relatedModule, integer $relatedId )

查询当前投票参与人数

查询当前投票参与人数

Parameters

$relatedModule
相关模块名称
$relatedId
相关id

Result

integer 投票数
public 影响的行数
# deleteAllByRelationIdsAndModule( string $relatedids, string $relatedModule )

通过相关ids和模块名称删除评论

通过相关ids和模块名称删除评论

Parameters

$relatedids
相关Id
$relatedModule
相关模块名

Returns

影响的行数

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