CMS  Version 3.9
Calendar Class Reference

Defines the Event class. More...

Inherits DataItem.

Public Member Functions

 Events ($constraint="")
 
 EventTypes ($constraint="")
 
 Owner ()
 
 Calendar ()
 

Static Public Member Functions

static findByIdentifier ($identifier)
 

Public Attributes

 $fields
 
 $relations
 

Detailed Description

Defines the Event class.

Definition at line 42 of file calendar.inc.

Member Function Documentation

◆ Calendar()

Calendar::Calendar ( )

Definition at line 83 of file calendar.inc.

84  {
85  $this->table = "calendar";
86  $this->primary_key = "calendar_id";
87  $this->default_format = "{name}";
88 
89  $this->DataItem(func_get_args());
90  }

◆ Events()

Calendar::Events (   $constraint = "")

Definition at line 57 of file calendar.inc.

58  {
59  return $this->getRelatedList(Event, "", $constraint);
60  }
$constraint
Defines the Event class.
Definition: event.inc:43

◆ EventTypes()

Calendar::EventTypes (   $constraint = "")

Definition at line 62 of file calendar.inc.

63  {
64  return $this->crossReference(EventType, CalendarEventTypeXref, $constraint);
65  }

◆ findByIdentifier()

static Calendar::findByIdentifier (   $identifier)
static

Definition at line 73 of file calendar.inc.

74  {
75  $match = Query::create(Calendar, "WHERE identifier=:id")
76  ->bind(":id", $identifier)
77  ->executeSingle();
78 
79  return $match;
80  }
Defines the Event class.
Definition: calendar.inc:43
$identifier
Definition: rss.inc:37

◆ Owner()

Calendar::Owner ( )

Definition at line 67 of file calendar.inc.

68  {
69  $mgr = new UserManager();
70  return $mgr->getUser($this->owner_id);
71  }
$calendar owner_id
Provides the interface to the user model for the application.

Member Data Documentation

◆ $fields

Calendar::$fields
Initial value:
= array("calendar_id" => Number,
"name" => String,
"identifier" => String,
"description" => HTML,
"owner_id" => Number,
"read_access" => String,
"write_access" => String,
"last_modified" => Timestamp)

Definition at line 44 of file calendar.inc.

◆ $relations

Calendar::$relations
Initial value:
= array("Events" => Event,
"Owner" => "",
"EventTypes" => EventType)

Definition at line 53 of file calendar.inc.


The documentation for this class was generated from the following file: