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

  • Attachment
  • AttachmentN
  • AttachmentUnused
  • Cron
  • MenuCommon
  • MenuPersonal
  • ModuleGuide
  • Process
  • Session
  • Setting

Class AttachmentN

Namespace: application\modules\main\model
Located at system/modules/main/model/AttachmentN.php

Methods summary

public static type
# model( )

模拟AR的model方法,实现单例

模拟AR的model方法,实现单例

Returns

type
public string
# getTable( mixed $tableId )

根据tableID获取对应的表名

根据tableID获取对应的表名

Parameters

$tableId

Returns

string
符合的表名

Throws

CException
public array
# fetch( integer $tableId, integer $aid, boolean $isImage = false )

获取一条附件分表的记录

获取一条附件分表的记录

Parameters

$tableId
分表ID
$aid
附件ID
$isImage
是否图片格式

Returns

array
public integer
# add( integer $tableId, array $attrs, $returnId = false )

增加一条附件分表记录

增加一条附件分表记录

Parameters

$tableId
$attrs
$returnId

Returns

integer
public integer
# deleteByPk( integer $tableId, integer $aid )

删除一条附件分表记录

删除一条附件分表记录

Parameters

$tableId
$aid

Returns

integer
IBOS open source API documentation generated by ApiGen