Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default option configurated #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions config/ZfcUserAdmin.global.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,52 @@ $settings = array(
* ZfcUserAdmin\Mapper\UserZendDb
*/
'user_mapper' => 'ZfcUserAdmin\Mapper\UserDoctrine',

/**
* Array of data to show in the user list
* Key = Label in the list
* Value = entity property(expecting a 'getProperty())
* Default value: array('Id' => 'id', 'Email address' => 'email')
*/
'userListElements' => array('Id' => 'id', 'Email address' => 'email'),

/**
* Array of form elements to show when editing a user
* Key = form label
* Value = entity property(expecting a 'getProperty()/setProperty()' function)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a little hard to understand for some people, can you show an example?

* Default value: array()
*/
'editFormElements' => array(),

/**
* Array of form elements to show when creating a user
* Key = form label
* Value = entity property(expecting a 'getProperty()/setProperty()' function)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a little hard to understand for some people, can you show an example?

* Default value: array()
*/
'createFormElements' => array(),

/**
* @var bool
* true = create password automaticly
* false = administrator chooses password
* Default value: true
*/
'createUserAutoPassword' => true,

/**
* @var int
* Length of passwords created automatically
* default value: 8
*/
'autoPasswordLength' => 8,

/**
* @var bool
* Allow change user password on user edit form.
* default value: true
*/
'allowPasswordChange' => true,
);

/**
Expand Down