mirror of
https://github.com/dducret/kopano-webapp-passwd
synced 2026-07-28 02:54:09 +02:00
42 lines
No EOL
733 B
PHP
42 lines
No EOL
733 B
PHP
<?php
|
|
/**
|
|
* Passwd module.
|
|
*
|
|
*/
|
|
|
|
class PasswdModule extends Module
|
|
{
|
|
public function __construct($id, $data) {
|
|
parent::Module($id, $data);
|
|
}
|
|
|
|
/**
|
|
* Process the incoming events that were fire by the client.
|
|
*
|
|
* @return boolean True if everything was processed correctly.
|
|
*/
|
|
public function execute()
|
|
{
|
|
$result = false;
|
|
|
|
foreach($this->data as $actionType => $actionData)
|
|
{
|
|
if(isset($actionType)) {
|
|
try {
|
|
switch($actionType)
|
|
{
|
|
case "save":
|
|
$this->save($actionData);
|
|
break;
|
|
default:
|
|
$this->handleUnknownActionType($actionType);
|
|
}
|
|
} catch (MAPIException $e) {
|
|
$this->sendFeedback(false, $this->errorDetailsFromException($e));
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
?>
|