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

  • Position
  • PositionCategory
  • PositionRelated
  • PositionResponsibility

Class Position

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

Methods summary

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

新增或保存单条记录后更新缓存

新增或保存单条记录后更新缓存

public
# afterDelete( )

删除后单条记录后更新缓存

删除后单条记录后更新缓存

public array
# fetchAllByCatId( integer $catId, integer $limit, integer $offset )

根据catId(如果有)查找列表页数据

根据catId(如果有)查找列表页数据

Parameters

$catId
岗位分类ID
$limit
每页数据
$offset
偏移量

Returns

array
public string
# fetchPosNameByPosId( mixed $id, string $glue = ',', boolean $returnFirst = false )

根据岗位ID查找岗位名称,返回$glue分隔的岗位名称字符串

根据岗位ID查找岗位名称,返回$glue分隔的岗位名称字符串

Parameters

$id
$ids 岗位ID数组或逗号分隔字符串
$glue
分隔符
$returnFirst
是否返回第一个

Returns

string

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

protected mixed $allowCache

是否允许缓存

是否允许缓存

# true

Properties inherited from application\core\model\Model

$cacheLife

IBOS open source API documentation generated by ApiGen