CMS  Version 3.9
MergeCodeHelp Class Reference

Inherits DataItem.

Public Member Functions

 MergeCodeHelp ()
 

Static Public Member Functions

static getHelp ()
 

Public Attributes

 $fields
 

Detailed Description

Definition at line 90 of file merge_code.inc.

Member Function Documentation

◆ getHelp()

static MergeCodeHelp::getHelp ( )
static

Definition at line 105 of file merge_code.inc.

106  {
107  $helps = array();
108  $help = new MergeCodeHelp();
109  $help->usage = "To get a <b>field</b> in the sending class object, a merge code record is not needed; use '[field_name]' as the merge code";
110  $help->example = "N/A";
111  $helps[0] = $help;
112 
113  $help = new MergeCodeHelp();
114  $help->usage = "To get a <b>field</b> in a <b>related</b> class object, enter the related class name as defined in the DataModel. Use the dot separator to link to the field name. The map does not allow links to relations of relations.";
115  $help->example = "MyRelation.my_field";
116  $helps[1] = $help;
117 
118  $help = new MergeCodeHelp();
119  $help->usage = "To get a value from a <b>function</b> in the DataModel of the sending class, enter the function name.";
120  $help->example = "myFunction";
121  $helps[2] = $help;
122 
123  $help = new MergeCodeHelp();
124  $help->usage = "To get a value from a <b>function</b> in a <b>related</b> class, enter the related class name as defined in the DataModel with a dot separator and function name. The map does not allow links to relations of relations.";
125  $help->example = "MyRelation.myFunction";
126  $helps[3] = $help;
127 
128  $help = new MergeCodeHelp();
129  $help->usage = "To get a value from a <b>callback</b> function, the map must state the name of the function. The function must be available from the calling script. The callback function will receive the sending object as a parameter.";
130  $help->example = "myCallbackFunction";
131  $helps[4] = $help;
132 
133  $help = new MergeCodeHelp();
134  $help->usage = "To get a value from a static <b>function</b> of a <b>non-DataItem</b> class, enter the class name, dot separator, and static function name. The class definition must be included in the calling script. The static function will receive the sending object as a parameter.";
135  $help->example = "myClassName.myStaticFunction";
136  $helps[5] = $help;
137 
138  return $helps;
139  }

◆ MergeCodeHelp()

MergeCodeHelp::MergeCodeHelp ( )

Definition at line 98 of file merge_code.inc.

99  {
100  $this->table = "merge_code";
101  $this->primary_key = "help_id";
102 
103  }

Member Data Documentation

◆ $fields

MergeCodeHelp::$fields
Initial value:
= array(
"help_id" => Number,
"usage" => String,
"example" => String
)

Definition at line 92 of file merge_code.inc.


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