Ejemplo n.º 1
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('id', array('domain' => 'org.civicoop.myemma')), 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name', array('domain' => 'org.civicoop.myemma')), 'description' => 'The name of the my emma account', 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'account_id' => array('name' => 'account_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Account ID', array('domain' => 'org.civicoop.myemma')), 'description' => 'The ID of the account in my emma', 'required' => true), 'public_key' => array('name' => 'public_key', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Public key', array('domain' => 'org.civicoop.myemma')), 'description' => 'The public key of the my emma account', 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'private_key' => array('name' => 'private_key', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Private key', array('domain' => 'org.civicoop.myemma')), 'description' => 'The private key of the my emma account', 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parent_group_id' => array('name' => 'parent_group_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Parent group', array('domain' => 'org.civicoop.myemma')), 'description' => '', 'required' => true));
     }
     return self::$_fields;
 }