const UTF8 = 'DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci';
const CATEGORY_LENGTH = 12;
const CATEGORY_REGEXP = ';^[a-zA-Z0-9]+$;';
- const ID_LENGTH = 37; // MAX{64} - CATEGORY_LENGTH{12} - CONST_LENGHTH{15} = 37
+ // MAX{64} - CATEGORY_LENGTH{12} - CONST_LENGHTH{15} = 37
+ const ID_LENGTH = 37;
const ID_REGEXP = ';^[a-zA-Z0-9_]+$;';
const INNODB = 'ENGINE=InnoDB';
const MEMORY = 'ENGINE=MEMORY';
/**
* @var bool
*/
- protected $durable, $utf8;
+ protected $durable;
+
+ /**
+ * @var bool
+ */
+ protected $utf8;
protected $category;
$this->utf8 ? self::UTF8 : '',
($selectQuery instanceof CRM_Utils_SQL_Select ? $selectQuery->toSQL() : $selectQuery)
);
- CRM_Core_DAO::executeQuery($sql, array(), TRUE, NULL, TRUE, FALSE);
+ CRM_Core_DAO::executeQuery($sql, [], TRUE, NULL, TRUE, FALSE);
$this->createSql = $sql;
return $this;
}
$this->memory ? self::MEMORY : self::INNODB,
$this->utf8 ? self::UTF8 : ''
);
- CRM_Core_DAO::executeQuery($sql, array(), TRUE, NULL, TRUE, FALSE);
+ CRM_Core_DAO::executeQuery($sql, [], TRUE, NULL, TRUE, FALSE);
$this->createSql = $sql;
return $this;
}
*/
public function drop() {
$sql = $this->toSQL('DROP', 'IF EXISTS');
- CRM_Core_DAO::executeQuery($sql, array(), TRUE, NULL, TRUE, FALSE);
+ CRM_Core_DAO::executeQuery($sql, [], TRUE, NULL, TRUE, FALSE);
return $this;
}