/**
* Set variables up before form is built
*
- * @param null
*
* @return void
*/
* add the rules (mainly global rules) for form.
* All local rules are added near the element
*
- * @param null
*
* @return void
* @see valid_date
/**
* Build the form object
*
- * @param null
*
* @return void
*/
if ($main == 'Relationship') {
$relName = self::getFormattedList($sel2[$main]);
$sel2[$main] = array(
- '' => ts("- Any -")
- ) + $relName;
+ '' => ts("- Any -"),
+ ) + $relName;
}
else {
$sel2[$main] = array(
- '' => ts("- Any -")
- ) + $sel2[$main];
+ '' => ts("- Any -"),
+ ) + $sel2[$main];
}
}
}
$contactSubTypes[$key] = $key;
}
$sel2['Contact'] = array(
- "" => "-- Any --"
- ) + $contactSubTypes;
+ "" => "-- Any --",
+ ) + $contactSubTypes;
}
else {
if (!isset($this->_id)) {
* Set default values for the form. Note that in edit/view mode
* the default values are retrieved from the database
*
- * @param null
*
* @return array
* array of default values
/**
* Process the form
*
- * @param null
*
* @return void
*/