Exemplo 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('Group Organization ID'), 'description' => 'Relationship ID', 'required' => true), 'group_id' => array('name' => 'group_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Group'), 'description' => 'ID of the group', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Group', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_group', 'keyColumn' => 'id', 'labelColumn' => 'title')), 'organization_id' => array('name' => 'organization_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Organization'), 'description' => 'ID of the Organization Contact', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'));
     }
     return self::$_fields;
 }
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'group_id' => array('name' => 'group_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Group'), 'organization_id' => array('name' => 'organization_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'));
     }
     return self::$_fields;
 }
Exemplo n.º 3
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), 'group_id' => array('name' => 'group_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Group', 'pseudoconstant' => array('table' => 'civicrm_group', 'keyColumn' => 'id', 'labelColumn' => 'title')), 'organization_id' => array('name' => 'organization_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'));
     }
     return self::$_fields;
 }