add more files to example extension

This commit is contained in:
Uwe Steinmann 2013-04-18 22:18:46 +02:00
parent 17b2e06fe9
commit e64ceabc7c
2 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,46 @@
<?php
/***************************************************************
* Copyright notice
*
* (c) 2013 Uwe Steinmann <uwe@steinmann.cx>
* 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 <uwe@steinmann.cx>
* @package SeedDMS
* @subpackage example
*/
class SeedDMS_ExtExample extends SeedDMS_ExtBase {
/**
* Initialization
*/
function init() { /* {{{ */
} /* }}} */
function main() { /* {{{ */
} /* }}} */
}
?>

View File

@ -1,5 +1,5 @@
<?php
$_GLOBALS['SEEDDMS_EXT']['example'] = array(
$EXT_CONF['example'] = array(
'title' => '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'
),
);
?>