Development

Changeset 23838 for plugins/pkBlogPlugin

You must first sign up to be able to contribute.

Show
Ignore:
Timestamp:
11/12/09 21:46:52 (4 years ago)
Author:
agilbert
Message:

Simple upcoming events component.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/pkBlogPlugin/trunk/modules/pkCalendar/lib/BasepkCalendarComponents.class.php

    r22973 r23838  
    1111abstract class BasepkCalendarComponents extends sfComponents 
    1212{ 
    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) 
    1427  { 
    1528    if ($this->getRequestParameter('tag'))