コード例 #1
0
ファイル: Recipients.php プロジェクト: hguru/224Civi
 /**
  * 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), 'mailing_id' => array('name' => 'mailing_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_Mailing'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'email_id' => array('name' => 'email_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'NULL', 'FKClassName' => 'CRM_Core_DAO_Email'), 'phone_id' => array('name' => 'phone_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'NULL', 'FKClassName' => 'CRM_Core_DAO_Phone'));
     }
     return self::$_fields;
 }
コード例 #2
0
ファイル: Recipients.php プロジェクト: kidaa30/yes
 /**
  * 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('Mailing Recipients ID'), 'required' => true), 'mailing_id' => array('name' => 'mailing_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing'), 'description' => 'The ID of the mailing this Job will send.', 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_Mailing'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Mailing Recipient'), 'description' => 'FK to Contact', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'email_id' => array('name' => 'email_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Recipient Email'), 'description' => 'FK to Email', 'default' => 'NULL', 'FKClassName' => 'CRM_Core_DAO_Email'), 'phone_id' => array('name' => 'phone_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Recipient Phone'), 'description' => 'FK to Phone', 'default' => 'NULL', 'FKClassName' => 'CRM_Core_DAO_Phone'));
     }
     return self::$_fields;
 }