![]() PEAR_PackageFileManager : The Definitive Guide |
Table of Contents
This lesson :
teachs you how to add a new user or remove him definitively
teachs you how to make a user inactive
teachs you how to change e-mail address, full name or role of a user
helps you get list of user (global, or by role)
No big change since API 1.5.x that manage package.xml
1.0; We use the same method name
addMaintainer()
with parameters :
role
role of maintainer
Every maintainer has one of four possible roles:
handle
username on pear.php.net of maintainer
name
full name of maintainer
email
email address of maintainer
active
status of maintainer (active = 'yes', inactive = 'no')
![]() |
Important |
---|---|
No checking of duplicates is performed, use updateMaintainer() for that purpose.
|
![]() |
Warning |
---|---|
Role, and Handle parameters are not given in same order. See example below: |
To produce a package.xml
version 1.0
To produce a package.xml
version 2.0
![]() |
Tip |
---|---|
You may now with PEAR_PackageFileManager 1.6.0+ add a new user
with a default inactive status. It was not possible with
package xml 1.0; When a user was added as maintainer, it was
considered as active. No way to made him inactive, except to
remove him definitively.
See previous example with "davidc", added as inactive. |
PEAR_PackageFileManager : The Definitive Guide | v 1.6.0 : November 17, 2006 |