Changeset 23838 for plugins/pkBlogPlugin
- Timestamp:
- 11/12/09 21:46:52 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/pkBlogPlugin/trunk/modules/pkCalendar/lib/BasepkCalendarComponents.class.php
r22973 r23838 11 11 abstract class BasepkCalendarComponents extends sfComponents 12 12 { 13 public function executeTagSidebar($request) 13 public function executeUpcomingEvents(sfWebRequest $request) 14 { 15 $limit = ($this->limit) ? $this->limit : 5; 16 17 $q = Doctrine::getTable('pkBlogEvent') 18 ->createQuery('p') 19 ->addWhere('p.published = ?', true) 20 ->orderBy('p.start_date') 21 ->limit($limit); 22 23 $this->pk_blog_events = $q->execute(); 24 } 25 26 public function executeTagSidebar(sfWebRequest $request) 14 27 { 15 28 if ($this->getRequestParameter('tag'))