* Number of columns in where
*
* @var int
- * @access public
*/
public $_columnCount;
* Number of blocks to be shown
*
* @var int
- * @access public
*/
public $_blockCount;
* Build the form object
*
* @return void
- * @access public
*/
public function preProcess() {
$this->set('searchFormName', 'Builder');
/**
* Add local and global form rules
*
- * @access protected
*
* @return void
*/
*
* @return array list of errors to be posted back to the form
* @static
- * @access public
*/
public static function formRule($values, $files, $self) {
if (!empty($values['addMore']) || !empty($values['addBlock'])) {
* Process the uploaded file
*
* @return void
- * @access public
*/
public function postProcess() {
$this->set('isAdvanced', '2');
* CRM-10338
* tags and groups use array keys for selection list.
* if using IS NULL/NOT NULL, an array with no array key is created
- * convert that to simple null so processing can proceed
+ * convert that to simple NULL so processing can proceed
*/
public static function checkArrayKeyEmpty($val) {
if (is_array($val)) {
- $v2empty = true;
+ $v2empty = TRUE;
foreach ($val as $vk => $vv) {
if (!empty($vk)) {
$v2empty = false;
}
}
if ($v2empty) {
- $val = null;
+ $val = NULL;
}
}
return $val;
}
}
-