Пример #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('Open ID identifier'), 'description' => 'Unique OpenID ID', 'required' => true), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('OpenID Contact'), 'description' => 'FK to Contact ID', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'location_type_id' => array('name' => 'location_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('OpenID Location Type'), 'description' => 'Which Location does this email belong to.'), 'openid' => array('name' => 'openid', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('OpenID'), 'description' => 'the OpenID (or OpenID-style http://username.domain/) unique identifier for this contact mainly used for logging in to CiviCRM', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_openid.openid', 'headerPattern' => '/^Open.?ID|u(niq\\w*)?.?ID/i', 'dataPattern' => '/^[\\w\\/\\:\\.]+$/', 'export' => true, 'rule' => 'url'), 'allowed_to_login' => array('name' => 'allowed_to_login', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Allowed to login?'), 'description' => 'Whether or not this user is allowed to login', 'required' => true), 'is_primary' => array('name' => 'is_primary', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is OpenID Primary?'), 'description' => 'Is this the primary email for this contact and location.'));
     }
     return self::$_fields;
 }
Пример #2
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), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'location_type_id' => array('name' => 'location_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('OpenID Location Type')), 'openid' => array('name' => 'openid', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('OpenID'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_openid.openid', 'headerPattern' => '/^Open.?ID|u(niq\\w*)?.?ID/i', 'dataPattern' => '/^[\\w\\/\\:\\.]+$/', 'export' => true, 'rule' => 'url'), 'allowed_to_login' => array('name' => 'allowed_to_login', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Allowed To Login'), 'required' => true), 'is_primary' => array('name' => 'is_primary', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is OpenID Primary?')));
     }
     return self::$_fields;
 }