Defines the Event class.
More...
Inherits DataItem.
Defines the Event class.
Definition at line 42 of file event.inc.
◆ Calendar()
◆ Comments()
Event::Comments |
( |
|
$constraint = "" | ) |
|
◆ Event()
Definition at line 124 of file event.inc.
126 $this->table =
"event";
127 $this->primary_key =
"event_id";
129 $this->DataItem(func_get_args());
◆ Invitation()
Definition at line 110 of file event.inc.
112 if(!$this->event_invitation_id)
return null;
◆ isOwner()
Definition at line 100 of file event.inc.
103 if(!
$user)
return false;
107 return (checkRole(
"admin") ||
$user->$pk == $this->owner_id) ?
true :
false;
$table column("Redirect From", "<a href='redirect_form?redirect_id={redirect_id}'>{redirect_from}</a>", true, "width: 30%") -> column("Redirect To", "<a href='{redirect_to}' target='_blank'>{redirect_to}</a>", true, "width: 30%") ->column("Last Modified", "{last_modified}", true, "width: 20%; text-align: center") ->column("Override", "{ override true
◆ Owner()
Definition at line 81 of file event.inc.
Provides the interface to the user model for the application.
◆ setOwner()
◆ Sites()
Event::Sites |
( |
|
$constraint = "" | ) |
|
◆ TimeZone()
Definition at line 117 of file event.inc.
119 if(!$this->time_zone_id)
return null;
◆ $fields
Initial value:= array("event_id" => Number,
"title" => String,
"calendar_id" => Number,
"start_date" => DateTime,
"end_date" => DateTime,
"time_zone_id" => Number,
"location" => String,
"event_type" => String,
"description" => HTML,
"published" => Boolean,
"allow_access" => String,
"owner_id" => Number,
"last_modified" => Timestamp,
"event_invitation_id" => Number,
"composite_class" => String,)
Definition at line 44 of file event.inc.
◆ $relations
Initial value:= array(
"Owner" => "",
)
Definition at line 62 of file event.inc.
The documentation for this class was generated from the following file:
- C:/code/cms.sonjara.com/cms/components/calendar/datamodel/event.inc