52 Fakoli::end(
"No relations available for this class");
57 $tree =
new TreeControl(
"relation",
"",
"tree",
true, 375);
66 if(preg_match(
"/s$/",
$name))
70 $relationNode =
new TreeNode(
"relation_$name",
$name,
null,
false,
"bare_node_closed",
"bare_node_open");
72 $fields = $relObj->getFields();
73 if(count($fields) > 0)
75 foreach($fields as $f_name =>
$type)
77 if(preg_match(
"/_id/", $f_name) || preg_match(
"/composite/", $f_name)
78 || preg_match(
"/password/", $f_name) ||
$type == Boolean)
81 $str =
"'" . $f_name .
"'";
82 $fieldNode =
new TreeNode(
"field_{$name}_{$f_name}", $f_name,
null,
false,
"tree_node_closed",
"tree_node_open",
"javascript:new EmailManager().createMergeCode(\"$name\", \"$f_name\")");
83 $fieldNode->leafStyle =
"plain_node_leaf";
84 $relationNode->add($fieldNode);
87 $tree->add($relationNode);
if(count($relations) > 0) $script
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().