$this->add('text', 'name', ts('Name'),
CRM_Core_DAO::getAttribute('CRM_Core_DAO_Mapping', 'name'), TRUE
);
- $this->addRule('name', ts('Name already exists in Database.'), 'objectExists', array(
- 'CRM_Core_DAO_Mapping',
- $this->_id,
- ));
+ $this->addRule('name', ts('Name already exists in Database.'), 'objectExists', [
+ 'CRM_Core_DAO_Mapping',
+ $this->_id,
+ ]);
$this->addElement('text', 'description', ts('Description'),
CRM_Core_DAO::getAttribute('CRM_Core_DAO_Mapping', 'description')