mirror of
https://github.com/dducret/kopano-webapp-passwd
synced 2026-07-27 10:32:26 +02:00
commit initial skeleton of the plugin
nothing is working
This commit is contained in:
parent
b6c8396ab6
commit
843f674854
7 changed files with 397 additions and 0 deletions
42
php/class.passwdmodule.php
Normal file
42
php/class.passwdmodule.php
Normal 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));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue