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

  • Email
  • EmailBody
  • EmailFolder
  • EmailWeb

Class EmailBody

CActiveRecord
Extended by application\core\model\Model
Extended by application\modules\email\model\EmailBody
Namespace: application\modules\email\model
Located at system/modules/email/model/EmailBody.php

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public static boolean
# isExist( integer $sendtime, string $fromwebmail )

15-8-25 下午2:18 gzdzl

15-8-25 下午2:18 gzdzl

检查邮件是否已经存在,用于解决外部邮件重复接收问题 使用发送时间和发送人来判断是否重复

Parameters

$sendtime
发送时间戳
$fromwebmail
发送人邮箱地址

Returns

boolean
已经存在返回true,否则返回false
public integer
# delBody( string $bodyIds, integer $archiveId = 0 )

删除草稿

删除草稿

Parameters

$bodyIds
邮件主体ID
$archiveId
分类存档表ID

Returns

integer
影响的行数
public array
# handleEmailBody( array $data )

对邮件主体的再处理

对邮件主体的再处理

Parameters

$data
初始邮件主体数据

Returns

array
处理之后的邮件主体数据
public boolean|integer
# moveByBodyId( array $bodyIds, integer $source, integer $target )

移动存档方法

移动存档方法

Parameters

$bodyIds
$source
$target

Returns

boolean|integer
public string
# getTableName( integer $tableId = 0 )

根据存档表id获取存档表名

根据存档表id获取存档表名

Parameters

$tableId
存档表id

Returns

string
public array
# getTableStatus( integer $tableId = 0 )

获取当前表的状态

获取当前表的状态

Parameters

$tableId
存档表id

Returns

array
public boolean
# dropTable( integer $tableId, boolean $force = false )

删除表

删除表

Parameters

$tableId
存档表ID
$force
强制删除

Returns

boolean
public boolean
# createTable( integer $maxTableId )

创建一个表

创建一个表

Parameters

$maxTableId

Returns

boolean

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