mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
add more files to example extension
This commit is contained in:
parent
17b2e06fe9
commit
e64ceabc7c
46
ext/example/class.example.php
Normal file
46
ext/example/class.example.php
Normal 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() { /* {{{ */
|
||||||
|
} /* }}} */
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
$_GLOBALS['SEEDDMS_EXT']['example'] = array(
|
$EXT_CONF['example'] = array(
|
||||||
'title' => 'Example Extension',
|
'title' => 'Example Extension',
|
||||||
'description' => 'Example Extension',
|
'description' => 'Example Extension',
|
||||||
'version' => '1.0.0',
|
'version' => '1.0.0',
|
||||||
|
@ -7,5 +7,10 @@ $_GLOBALS['SEEDDMS_EXT']['example'] = array(
|
||||||
'constraints' => array(
|
'constraints' => array(
|
||||||
'depends' => array('php' => '5.4.4-', 'seeddms' => '4.2.0-'),
|
'depends' => array('php' => '5.4.4-', 'seeddms' => '4.2.0-'),
|
||||||
),
|
),
|
||||||
|
'icon' => '',
|
||||||
|
'class' => array(
|
||||||
|
'file' => 'class.example.php',
|
||||||
|
'name' => 'ext_example'
|
||||||
|
),
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user