calendar.php 836 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * The model file of calendar module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2012 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license business(商业软件)
  7. * @author Yangyang Shi <shiyangyang@cnezsoft.com>
  8. * @package calendar
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. public function getEfforts4Calendar($account = '', $year = '', $type = '', $id = 0)
  13. {
  14. if($type == 'execution') return $this->loadModel('execution')->getEfforts4Calendar($id, $account, $year);
  15. return $this->loadExtension('calendar')->getEfforts4Calendar($account, $year);
  16. }
  17. public function printCell($col, $effort, $mode = 'datatable', $executions = array())
  18. {
  19. return $this->loadExtension('calendar')->printCell($col, $effort, $mode, $executions);
  20. }