#17 Write ACal_Event class

General (59)

Write the ACal_Event class. This class will be used for creating/updating/deleting events. It will have a static method for returning an array of events.
It will also have a static search method for searching events.

The proposal is something like this:

class ACal_Event {
protected $event;
private static $db;
protected $event_id;

public static function getEvents($event_id = NULL, array $dateRange);
public static function search($query);

public function __set($name, $value);
public function __get($name);
public function save(); // return (event_id) or throw Exception

Will utilize Zend_Db and Zend_Search.


  • Arthur Wiebe

    Arthur Wiebe - 2007-02-27

    Logged In: YES
    Originator: YES

    This will actually be split into three classes. ACal, Events_Event, and Events_Search.
    ACal::get_db() will take care of database initialization for all classes. Events_Event will take care of function specific to a single event. Such as saving, reading, checking validity, etc.
    Events_Search will take care of searching through all events, getting a list of events, getting the contents of a groups of events, and getting event information in a specific date range. etc.

    I hope to have this bug closed this week.

  • Arthur Wiebe

    Arthur Wiebe - 2007-02-27
    • status: open --> open-accepted
  • Arthur Wiebe

    Arthur Wiebe - 2007-03-17
    • status: open-accepted --> closed-fixed
  • Arthur Wiebe

    Arthur Wiebe - 2007-03-17

    Logged In: YES
    Originator: YES

    The methods getEvents and search were moved to Events_Search.

    This class was renamed to Events_Event.

    This class is complete except for search. (Saving event information to search index dynamically. This depends on the completion of Events_Search.)

    Closing as of svn commit 130


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks