public static function LdapAuthorizationConsumerConfAdmin::fields in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.2 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::fields()
- 7 ldap_authorization/LdapAuthorizationConsumerConfAdmin.class.php \LdapAuthorizationConsumerConfAdmin::fields()
2 calls to LdapAuthorizationConsumerConfAdmin::fields()
- LdapAuthorizationConsumerConfAdmin::__construct in ldap_authorization/
LdapAuthorizationConsumerConfAdmin.class.php - Constructor Method
- ldap_authorization_schema in ldap_authorization/
ldap_authorization.install - Implements hook_schema().
File
- ldap_authorization/
LdapAuthorizationConsumerConfAdmin.class.php, line 382
Class
- LdapAuthorizationConsumerConfAdmin
- LDAP Authorization Consumer Configration Admin Class
Code
public static function fields() {
/**
* consumer_type is tag (unique alphanumeric id) of consuming authorization such as
* drupal_roles, og_groups, civicrm_memberships
*/
$fields = array(
'numeric_consumer_conf_id' => array(
'schema' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary ID field for the table. Only used internally.',
'no export' => TRUE,
),
),
'sid' => array(
'schema' => array(
'type' => 'varchar',
'length' => 20,
'not null' => TRUE,
),
),
'consumer_type' => array(
'schema' => array(
'type' => 'varchar',
'length' => 20,
'not null' => TRUE,
),
),
'consumer_module' => array(
'schema' => array(
'type' => 'varchar',
'length' => 30,
'not null' => TRUE,
),
),
'status' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'only_ldap_authenticated' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
),
),
'use_first_attr_as_groupid' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'mappings' => array(
'form_default' => array(),
'schema' => array(
'type' => 'text',
'not null' => FALSE,
'default' => NULL,
),
),
'use_filter' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
),
),
'synchronization_modes' => array(
'form_default' => array(
'user_logon',
),
),
'synchronization_actions' => array(
'form_default' => array(
'revoke_ldap_provisioned',
'create_consumers',
),
),
'synch_to_ldap' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'synch_on_logon' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'revoke_ldap_provisioned' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'create_consumers' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
'regrant_ldap_provisioned' => array(
'schema' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
),
);
return $fields;
}