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

  • Calendars
  • CalendarSetup
  • Tasks

Class Calendars

CActiveRecord
Extended by application\core\model\Model
Extended by application\modules\calendar\model\Calendars
Namespace: application\modules\calendar\model
Copyright: Copyright © 2008-2013 IBOS Inc
Author: gzhzh gzhzh@ibos.com.cn
Located at system/modules/calendar/model/Calendars.php

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public array
# listCalendar( string $st, string $et, integer $uid )

显示某个日程

显示某个日程

Parameters

$st
$showDate 显示的时间段
$et
$viewType 视图类型(日/周/月)
$uid
用户ID

Returns

array
public array
# listCalendarByRange( dateline $sd, dateline $ed, integer $uid = '', integer $num = null )

获取某段时间内的日程安排

获取某段时间内的日程安排

Parameters

$sd
显示开始时间区域
$ed
显示结束时间区域
$uid
用户UID
$num
规定要返回的周期条数

Returns

array
返回数据,注:如果是周期性日程,ID是伪ID,10位负数(时间戳)加上所属周期的真实ID
public array
# updateSchedule( integer $calendarid, dateline $st, dateline $et, string $sj, integer $cg, integer $iad, integer $su = null )

更新某个日程

更新某个日程

Parameters

$calendarid
$id 日程的ID
$st
开始时间
$et
结束时间
$sj
标题
$cg
分类
$iad
$su 完成状态
$su
$iad 全天日程

Returns

array
返回状态
public array
# fetchLoopsAndPage( string $conditions = '', integer $pageSize = null )

取得周期性事务并分页显示

取得周期性事务并分页显示

Parameters

$conditions
$pageSize

Returns

array
public
# countByCondition( $condition = '' )

根据条件取得总记录数

根据条件取得总记录数

public array
# fetchEditLoop( integer $editCalendarid )

通过周期性事务(日程)ID获取这条数据并处理后返回

通过周期性事务(日程)ID获取这条数据并处理后返回

Parameters

$editCalendarid
日程ID号

Returns

array
public array
# fetchNewSchedule( integer $uid, integer $st )

取最新的5条日程,用于首页

取最新的5条日程,用于首页

Parameters

$uid
用户ID
$st
开始时间(即现在时间),时间戳

Returns

array
返回最新的5条日程
public array
# handleColor( integer $cagory )

颜色主题,用于周期性事务页面输出

颜色主题,用于周期性事务页面输出

Parameters

$cagory
主题分类(-1至7(不包括0),每个数字代表一种颜色,-1是默认颜色)

Returns

array
返回这个主题对应的颜色

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