1
0
Fork 0
mirror of https://github.com/dducret/kopano-webapp-passwd synced 2026-07-28 02:54:09 +02:00
kopano-webapp-passwd/php/class.passwdmodule.php
Saket Patel 843f674854 commit initial skeleton of the plugin
nothing is working
2013-07-02 01:35:25 +05:30

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));
}
}
}
}
}
?>