seeddms-code/inc/inc.ClassHook.php
Uwe Steinmann 9ab19afe03 check return value of hook
no return value will be discarded, array and objects are put into an array, strings are concatened
2017-05-02 18:29:47 +02:00

42 lines
822 B
PHP

<?php
/**
* Implementation of hook response class
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2017 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Parent class for all hook response classes
*
* @category DMS
* @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2017 Uwe Steinmann
* @version Release: @package_version@
*/
class SeedDMS_Hook_Response {
protected $data;
protected $error;
public function __construct($error = false, $data = null) {
$this->data = $data;
$this->error = $error;
}
public function setData($data) {
$this->data = $data;
}
public function getData() {
return $this->data;
}
}