CMS  Version 3.9
CustomReport Class Reference

Inherits DataItem.

Public Member Functions

 User ()
 
 allowDelete ()
 

Public Attributes

 $primary_key = "report_id"
 
 $table = "custom_report"
 
 $fields
 
 $relations
 

Detailed Description

Definition at line 39 of file custom_report.inc.

Member Function Documentation

◆ allowDelete()

CustomReport::allowDelete ( )

Definition at line 67 of file custom_report.inc.

68  {
69  if(!$this->report_id || !$this->title) return false;
70 
71  return true;
72  }
$bookmark title

◆ User()

CustomReport::User ( )

Definition at line 59 of file custom_report.inc.

60  {
61  if(!$this->user_id) return;
62 
63  $mgr = new UserManager();
64  return $this->getRelated($mgr->getUserClass());
65  }
Provides the interface to the user model for the application.
$feedback user_id
Definition: save.inc:14

Member Data Documentation

◆ $fields

CustomReport::$fields
Initial value:
= array("report_id" => Number,
"manager_class" => String,
"title" => String,
"description" => Text,
"configuration" => Text,
"column_order" => String,
"user_id" => Number,
"shared" => Boolean)

Definition at line 46 of file custom_report.inc.

◆ $primary_key

CustomReport::$primary_key = "report_id"

Definition at line 41 of file custom_report.inc.

◆ $relations

CustomReport::$relations
Initial value:
= array(
"User" => "",
)

Definition at line 55 of file custom_report.inc.

◆ $table

CustomReport::$table = "custom_report"

Definition at line 42 of file custom_report.inc.


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