Exemplo n.º 1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'find_word' => array('name' => 'find_word', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Find Word'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'replace_word' => array('name' => 'replace_word', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Replace Word'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Word Replacement is Active')), 'match_type' => array('name' => 'match_type', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Match Type'), 'default' => 'wildcardMatch', 'enumValues' => 'wildcardMatch, exactMatch'), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Core_DAO_Domain'));
     }
     return self::$_fields;
 }
Exemplo n.º 2
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Word Replacement ID'), 'description' => 'Word replacement ID', 'required' => true), 'find_word' => array('name' => 'find_word', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Replaced Word'), 'description' => 'Word which need to be replaced', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'replace_word' => array('name' => 'replace_word', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Replacement Word'), 'description' => 'Word which will replace the word in find', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Word Replacement is Active'), 'description' => 'Is this entry active?', 'default' => '1'), 'match_type' => array('name' => 'match_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Word Replacement Match Type'), 'maxlength' => 16, 'size' => CRM_Utils_Type::TWELVE, 'default' => 'wildcardMatch', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::getWordReplacementMatchType')), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Word Replacement Domain ID'), 'description' => 'FK to Domain ID. This is for Domain specific word replacement', 'FKClassName' => 'CRM_Core_DAO_Domain', 'pseudoconstant' => array('table' => 'civicrm_domain', 'keyColumn' => 'id', 'labelColumn' => 'name')));
     }
     return self::$_fields;
 }