Class AttachmentN
Methods summary
public static
type
|
#
model( )
模拟AR的model方法,实现单例
Returns
type
|
public
string
|
#
getTable( mixed $tableId )
根据tableID获取对应的表名
Parameters
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
Returns
integer
|