From e64ceabc7cf7dea38d9799cadbe06c984d4e9cd6 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 18 Apr 2013 22:18:46 +0200 Subject: [PATCH] add more files to example extension --- ext/example/class.example.php | 46 +++++++++++++++++++++++++++++++++++ ext/example/conf.php | 7 +++++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 ext/example/class.example.php diff --git a/ext/example/class.example.php b/ext/example/class.example.php new file mode 100644 index 000000000..49588eb3e --- /dev/null +++ b/ext/example/class.example.php @@ -0,0 +1,46 @@ + +* All rights reserved +* +* This script is part of the SeedDMS project. The SeedDMS project is +* free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* The GNU General Public License can be found at +* http://www.gnu.org/copyleft/gpl.html. +* +* This script is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* This copyright notice MUST APPEAR in all copies of the script! +***************************************************************/ + +require_once("inc/inc.ClassExtBase.php"); + +/** + * Example extension + * + * @author Uwe Steinmann + * @package SeedDMS + * @subpackage example + */ +class SeedDMS_ExtExample extends SeedDMS_ExtBase { + + /** + * Initialization + */ + function init() { /* {{{ */ + } /* }}} */ + + function main() { /* {{{ */ + } /* }}} */ +} + +?> diff --git a/ext/example/conf.php b/ext/example/conf.php index 7fbbcdfe6..ea6b7e8f6 100644 --- a/ext/example/conf.php +++ b/ext/example/conf.php @@ -1,5 +1,5 @@ 'Example Extension', 'description' => 'Example Extension', 'version' => '1.0.0', @@ -7,5 +7,10 @@ $_GLOBALS['SEEDDMS_EXT']['example'] = array( 'constraints' => array( 'depends' => array('php' => '5.4.4-', 'seeddms' => '4.2.0-'), ), + 'icon' => '', + 'class' => array( + 'file' => 'class.example.php', + 'name' => 'ext_example' + ), ); ?>