dolibarr 20.0.0
|
Class to manage mailman and spip. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
isSpipEnabled () | |
Function used to check if SPIP is enabled on the system. | |
checkSpipConfig () | |
Function used to check if the SPIP config is correct. | |
connectSpip () | |
Function used to connect to SPIP. | |
add_to_spip ($object) | |
Fonction qui donne les droits redacteurs dans spip. | |
del_to_spip ($object) | |
Fonction qui enleve les droits redacteurs dans spip. | |
is_in_spip ($object) | |
Indicate if the user is an existing editor in spip. | |
add_to_mailman ($object, $listes='') | |
Subscribe an email to all mailing-lists. | |
del_to_mailman ($object, $listes='') | |
Unsubscribe an email from all mailing-lists Used when a user is resiliated. | |
Private Member Functions | |
callMailman ($object, $url, $list) | |
Function used to connect to Mailman. | |
Class to manage mailman and spip.
Definition at line 40 of file mailmanspip.class.php.
MailmanSpip::__construct | ( | $db | ) |
Constructor.
Definition at line 83 of file mailmanspip.class.php.
MailmanSpip::add_to_mailman | ( | $object, | |
$listes = '' ) |
Subscribe an email to all mailing-lists.
Adherent | $object | Object with data (->email, ->pass, ->element, ->type) |
string | $listes | To force mailing-list (string separated with ,) |
Definition at line 311 of file mailmanspip.class.php.
References $object, callMailman(), dol_syslog(), and getDolGlobalString().
MailmanSpip::add_to_spip | ( | $object | ) |
Fonction qui donne les droits redacteurs dans spip.
Adherent | $object | Object with data (->firstname, ->lastname, ->email and ->login) |
Definition at line 176 of file mailmanspip.class.php.
References $object, checkSpipConfig(), connectSpip(), dol_hash(), dol_syslog(), dolGetFirstLastname(), isSpipEnabled(), and makesalt().
|
private |
Function used to connect to Mailman.
Adherent | $object | Object with the data |
string | $url | Mailman URL to be called with patterns |
string | $list | Name of mailing-list |
Definition at line 142 of file mailmanspip.class.php.
References $object, dol_syslog(), getDolGlobalString(), and getURLContent().
Referenced by add_to_mailman(), and del_to_mailman().
MailmanSpip::checkSpipConfig | ( | ) |
Function used to check if the SPIP config is correct.
Definition at line 107 of file mailmanspip.class.php.
References getDolGlobalString().
Referenced by add_to_spip(), del_to_spip(), and is_in_spip().
MailmanSpip::connectSpip | ( | ) |
Function used to connect to SPIP.
Definition at line 121 of file mailmanspip.class.php.
References dol_syslog(), getDolGlobalInt(), getDolGlobalString(), and getDoliDBInstance().
Referenced by add_to_spip(), del_to_spip(), and is_in_spip().
MailmanSpip::del_to_mailman | ( | $object, | |
$listes = '' ) |
Unsubscribe an email from all mailing-lists Used when a user is resiliated.
Adherent | $object | Object with data (->email, ->pass, ->element, ->type) |
string | $listes | To force mailing-list (string separated with ,) |
Definition at line 381 of file mailmanspip.class.php.
References $object, callMailman(), dol_syslog(), and getDolGlobalString().
MailmanSpip::del_to_spip | ( | $object | ) |
Fonction qui enleve les droits redacteurs dans spip.
Adherent | $object | Object with data (->login) |
Definition at line 223 of file mailmanspip.class.php.
References $object, checkSpipConfig(), connectSpip(), dol_syslog(), and isSpipEnabled().
MailmanSpip::is_in_spip | ( | $object | ) |
Indicate if the user is an existing editor in spip.
object | $object | Object with data (->login) |
Definition at line 264 of file mailmanspip.class.php.
References $object, checkSpipConfig(), connectSpip(), and isSpipEnabled().
MailmanSpip::isSpipEnabled | ( | ) |
Function used to check if SPIP is enabled on the system.
Definition at line 93 of file mailmanspip.class.php.
References getDolGlobalInt().
Referenced by add_to_spip(), del_to_spip(), and is_in_spip().