calendar.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * The model file of company 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 getEffort($parent, $begin, $end, $product = 0, $project = 0, $execution = 0, $user = '', $showUser = 'all', $userType = '')
  13. {
  14. return $this->loadExtension('calendar')->getEffort($parent, $begin, $end, $product, $project, $execution, $user, $showUser, $userType);
  15. }
  16. public function getTodo($parent, $begin, $end, $pager = null)
  17. {
  18. return $this->loadExtension('calendar')->getTodo($parent, $begin, $end, $pager);
  19. }
  20. public function getChildren($deptID)
  21. {
  22. return $this->loadExtension('calendar')->getChildren($deptID);
  23. }
  24. /**
  25. * @param int $deptID
  26. * @param string $type
  27. * @param string $params
  28. */
  29. public function getDeptUserPairs($deptID = 0, $type = 'inside', $params = '')
  30. {
  31. return $this->loadExtension('calendar')->getDeptUserPairs($deptID, $type, $params);
  32. }