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 Syscache

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

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public
# addCache( string $cacheName, mixed $data )

增加与替换一个系统缓存

增加与替换一个系统缓存

Parameters

$cacheName
缓存名称
$data
缓存数据
public mixed
# modify( array $pk, boolean $attributes = null )

重写父类增加方法实现syscache自身业务需求:实现更新与保存操作

重写父类增加方法实现syscache自身业务需求:实现更新与保存操作

Parameters

$pk
$attributes 要插入的数据
$attributes
$returnNewId 是否返回插入的ID

Returns

mixed

Overrides

application\core\model\Model::modify
public null
# fetchAllCache( mixed $cacheNames )

获取指定缓存

获取指定缓存

Parameters

$cacheNames

Returns

null

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(), remove(), updateAll(), updateByPk()

Properties summary

Properties inherited from application\core\model\Model

$allowCache, $cacheLife

IBOS open source API documentation generated by ApiGen