CMS  Version 3.9
EventCommentXref Class Reference

Inherits DataItem.

Public Member Functions

 verifyEnabled ($event_id)
 
 getURL ()
 
 Event ()
 
 Comment ()
 

Public Attributes

 $table = "event_comment_xref"
 
 $primary_key = "event_comment_id"
 
 $fields
 
 $relations
 

Detailed Description

Definition at line 164 of file event.inc.

Member Function Documentation

◆ Comment()

EventCommentXref::Comment ( )

Definition at line 194 of file event.inc.

195  {
196  return $this->getRelated(Comment);
197  }

◆ Event()

EventCommentXref::Event ( )

Definition at line 189 of file event.inc.

190  {
191  return $this->getRelated(Event);
192  }
Defines the Event class.
Definition: event.inc:43

◆ getURL()

EventCommentXref::getURL ( )

Definition at line 181 of file event.inc.

182  {
183  if(!$this->event_id) return "";
184 
185  $url = "event_details?event_id={$this->event_id}";
186  return $url . $this->format("#comment{comment_id}");
187  }
if(! $blog->published||! $blog->enable_rss_feed||!checkRole($blog->allow_read)) $url
Definition: rss.inc:58

◆ verifyEnabled()

EventCommentXref::verifyEnabled (   $event_id)

Definition at line 176 of file event.inc.

177  {
178  return Settings::getValue("calendar", "allow_comments");
179  }
static getValue($component, $name)
Retrieve the value of the specified Setting.
Definition: settings.inc:104

Member Data Documentation

◆ $fields

EventCommentXref::$fields
Initial value:
= array("event_comment_id" => Number,
"event_id" => Number,
"comment_id" => Number)

Definition at line 169 of file event.inc.

◆ $primary_key

EventCommentXref::$primary_key = "event_comment_id"

Definition at line 167 of file event.inc.

◆ $relations

EventCommentXref::$relations
Initial value:
= array( "Event" => Event,
"Comment" => Comment)

Definition at line 173 of file event.inc.

◆ $table

EventCommentXref::$table = "event_comment_xref"

Definition at line 166 of file event.inc.


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