Guest User

Untitled

a guest
Jun 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?
  2. class Events extends Zend_Db_Table_Abstract {
  3.  
  4. public function getMonths($month=null, $year=null) {
  5.  
  6. //...
  7.  
  8. $select = $this->select()
  9. ->join('calendar_event_types','calendar_event_types.id = calendar_events.id', 'name')
  10. ->where('uid = ?', AppUser::getInstance()->getUID())
  11. ->where('tstamp >= ?', $startDate->get('YYYY-MM-dd HH:mm:00'))
  12. ->where('tstamp <= ?', $endDate->get('YYYY-MM-dd HH:mm:00'))
  13. ->order('tstamp ASC');
  14.  
  15. Zend_Debug::dump($select->__toString());
  16. $rows = $this->fetchAll($select);
  17.  
  18. //...
  19. return $data;
  20. }
  21. }
Add Comment
Please, Sign In to add comment