예제 #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, 'required' => true), 'url' => array('name' => 'url', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Url'), 'description' => 'The URL to be tracked.', 'required' => true), 'mailing_id' => array('name' => 'mailing_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'FK to the mailing', 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_Mailing'));
     }
     return self::$_fields;
 }
예제 #2
0
 /**
  * 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), 'url' => array('name' => 'url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Url'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'mailing_id' => array('name' => 'mailing_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Mailing_DAO_Mailing'));
     }
     return self::$_fields;
 }