CMS  Version 3.9
Group Class Reference

Inherits DataItem.

Public Member Functions

 Topic ()
 
 Topics ($constraint="")
 
 Group ()
 

Public Attributes

 $fields
 
 $relations = array( "Topic" => Topic)
 

Detailed Description

Definition at line 34 of file group.inc.

Member Function Documentation

◆ Group()

Group::Group ( )

Definition at line 57 of file group.inc.

58  {
59  $this->primary_key = "group_id";
60  $this->table = "grp";
61 
62  $this->default_format = "{title}";
63  $this->pretty_class_name = "Group";
64  $this->DataItem(func_get_args());
65  }

◆ Topic()

Group::Topic ( )

Definition at line 46 of file group.inc.

47  {
48  return $this->getRelated(Topic);
49  }
This class maps the topic table.
Definition: topic.inc:38

◆ Topics()

Group::Topics (   $constraint = "")

Definition at line 51 of file group.inc.

52  {
53  return $this->crossReference(Topic, GrpTopicXref, $constraint);
54  }
$constraint

Member Data Documentation

◆ $fields

Group::$fields
Initial value:
= array("group_id" => Number,
"title" => String,
"description" => HTML,
"active" => Boolean)

Definition at line 37 of file group.inc.

◆ $relations

Group::$relations = array( "Topic" => Topic)

Definition at line 44 of file group.inc.


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