1
0
Fork 0
mirror of https://github.com/silentsakky/zarafa-webapp-passwd synced 2026-07-27 18:41:08 +02:00

commit initial skeleton of the plugin

nothing is working
This commit is contained in:
Saket Patel 2013-07-02 01:35:25 +05:30
commit 843f674854
7 changed files with 397 additions and 0 deletions

View file

@ -0,0 +1,42 @@
<?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));
}
}
}
}
}
?>