Removed modules not being used
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* osBilling - Open Billing Software
|
||||
*
|
||||
* This program 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Originally authored by Deon George
|
||||
*
|
||||
* @author Deon George <deonATleenooksDOTnet>
|
||||
* @copyright 2009 Deon George
|
||||
* @link http://osb.leenooks.net
|
||||
* @license http://www.gnu.org/licenses/
|
||||
* @package AgileBill
|
||||
* @subpackage Modules:Payment
|
||||
*/
|
||||
|
||||
/**
|
||||
* The main AgileBill Export Class
|
||||
*
|
||||
* @package AgileBill
|
||||
* @subpackage Modules:Export
|
||||
*/
|
||||
class export extends OSB_module {
|
||||
/**
|
||||
* @uses module
|
||||
*/
|
||||
public function add($VAR) {
|
||||
if (isset($VAR[$this->table.'_module_id']) && empty($VAR[$this->table.'_map_data'])) {
|
||||
global $VAR;
|
||||
$VAR['_page'] = 'export:add';
|
||||
|
||||
require_once(PATH_MODULES.'module/module.inc.php');
|
||||
$mo = new module($VAR[$this->table.'_module_id']);
|
||||
$VAR['module_name'] = $mo->getRecordAttr('name');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
parent::add($VAR);
|
||||
}
|
||||
|
||||
public function view($VAR) {
|
||||
global $smarty;
|
||||
|
||||
$s = parent::view($VAR);
|
||||
if (isset($s['module_id'])) {
|
||||
require_once(PATH_MODULES.'module/module.inc.php');
|
||||
$mo = new module($s['module_id']);
|
||||
|
||||
$smarty->assign('module_name',$mo->getRecordAttr('name'));
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
@@ -1,122 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<construct>
|
||||
<!-- Module name -->
|
||||
<module>export</module>
|
||||
<!-- Module supporting database table -->
|
||||
<table>export</table>
|
||||
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
|
||||
<dependancy></dependancy>
|
||||
<!-- DB cache in seconds -->
|
||||
<cache>0</cache>
|
||||
<!-- Default order_by field for SQL queries -->
|
||||
<order_by>plugin_name</order_by>
|
||||
<!-- Default SQL limit for SQL queries -->
|
||||
<limit>25</limit>
|
||||
<!-- Schema version (used to determine if the schema has change during upgrades) -->
|
||||
<version>1</version>
|
||||
|
||||
<!-- Database indexes -->
|
||||
<index>
|
||||
</index>
|
||||
|
||||
<!-- Database fields -->
|
||||
<field>
|
||||
<!-- Record ID -->
|
||||
<id>
|
||||
<index>1</index>
|
||||
<type>I4</type>
|
||||
<unique>1</unique>
|
||||
</id>
|
||||
<!-- Site ID -->
|
||||
<site_id>
|
||||
<index>1</index>
|
||||
<type>I4</type>
|
||||
</site_id>
|
||||
<!-- Date record created -->
|
||||
<date_orig>
|
||||
<convert>date-now</convert>
|
||||
<display>Date Created</display>
|
||||
<type>I8</type>
|
||||
</date_orig>
|
||||
<!-- Date record updated -->
|
||||
<date_last>
|
||||
<convert>date-now</convert>
|
||||
<display>Date Updated</display>
|
||||
<type>I8</type>
|
||||
</date_last>
|
||||
<!-- Record active (BOOL)-->
|
||||
<status>
|
||||
<display>Active</display>
|
||||
<type>L</type>
|
||||
</status>
|
||||
<!-- Export plugin name -->
|
||||
<plugin_name>
|
||||
<display>Plugin</display>
|
||||
<type>C(128)</type>
|
||||
<validate>any</validate>
|
||||
</plugin_name>
|
||||
<!-- Module name for data translation -->
|
||||
<module_id>
|
||||
<display>Module</display>
|
||||
<type>I4</type>
|
||||
<validate>numeric</validate>
|
||||
</module_id>
|
||||
<!-- Module item id name -->
|
||||
<item_id>
|
||||
<display>Item</display>
|
||||
<type>I4</type>
|
||||
<validate>numeric</validate>
|
||||
<unique>1</unique>
|
||||
</item_id>
|
||||
<!--Map data for the export -->
|
||||
<map_data>
|
||||
<convert>array</convert>
|
||||
<display>Map Data</display>
|
||||
<type>C(128)</type>
|
||||
<validate>any</validate>
|
||||
</map_data>
|
||||
</field>
|
||||
|
||||
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
||||
<method>
|
||||
<add>plugin_name,module_id,item_id,map_data</add>
|
||||
<delete>id</delete>
|
||||
<search>id,plugin_name,module_id,item_id,map_data</search>
|
||||
<search_show>id,plugin_name,module_id,item_id,map_data</search_show>
|
||||
<view>id,plugin_name,module_id,item_id,map_data</view>
|
||||
<update>item_id,map_data</update>
|
||||
</method>
|
||||
|
||||
<!-- Method triggers -->
|
||||
<trigger></trigger>
|
||||
|
||||
<!-- Template page display titles -->
|
||||
<title>
|
||||
<add>Add Map Item</add>
|
||||
</title>
|
||||
|
||||
<!-- Template helpers -->
|
||||
<tpl>
|
||||
<search_show>
|
||||
<checkbox>
|
||||
<field>id</field>
|
||||
<type>checkbox</type>
|
||||
<width>25px</width>
|
||||
</checkbox>
|
||||
<plugin_name>
|
||||
<field>plugin_name</field>
|
||||
</plugin_name>
|
||||
<module_id>
|
||||
<field>module_id</field>
|
||||
</module_id>
|
||||
<item_id>
|
||||
<field>item_id</field>
|
||||
</item_id>
|
||||
<icon>
|
||||
<field>status</field>
|
||||
<type>bool_icon</type>
|
||||
<width>20px</width>
|
||||
</icon>
|
||||
</search_show>
|
||||
</tpl>
|
||||
</construct>
|
@@ -1,59 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<install>
|
||||
<!-- Tree Menu Module Properties -->
|
||||
<module_properties>
|
||||
<!-- MODULE Dependancy, this module wont be installed if the dependant modules dont exist -->
|
||||
<dependancy></dependancy>
|
||||
<!-- Translated display to use on the tree -->
|
||||
<display>Export</display>
|
||||
<!-- Display a module in the menu tree -->
|
||||
<menu_display>1</menu_display>
|
||||
<!-- MODULE Name -->
|
||||
<name>export</name>
|
||||
<!-- MODULE Notes, these notes show up in the modules table, as a description of the module -->
|
||||
<notes><![CDATA[These notes show up in the modules table.]]></notes>
|
||||
<!-- MODULE Parent, the parent node in the tree -->
|
||||
<parent>setup</parent>
|
||||
<!-- SUB Modules to install with this one -->
|
||||
<sub_modules></sub_modules>
|
||||
<!-- MODULE Type (core|base), core modules cannot be deleted, unrecognised types are ignored. -->
|
||||
<type>base</type>
|
||||
</module_properties>
|
||||
|
||||
<!-- Tree Menu & Module Methods to load, they will be assigned the group permissions on install time, as selected by the user. -->
|
||||
<module_method>
|
||||
<add>
|
||||
<display>Add</display>
|
||||
<menu_display>1</menu_display>
|
||||
<name>add</name>
|
||||
<notes><![CDATA[Add records]]></notes>
|
||||
</add>
|
||||
<delete>
|
||||
<name>delete</name>
|
||||
<notes><![CDATA[Delete records]]></notes>
|
||||
</delete>
|
||||
<search>
|
||||
<display>List</display>
|
||||
<menu_display>1</menu_display>
|
||||
<name>search</name>
|
||||
<notes><![CDATA[List records]]></notes>
|
||||
<page><![CDATA[core:search&module=%%&_next_page_one=view]]></page>
|
||||
</search>
|
||||
<search_form>
|
||||
<name>search_form</name>
|
||||
<notes><![CDATA[Search for records]]></notes>
|
||||
</search_form>
|
||||
<search_show>
|
||||
<name>search_show</name>
|
||||
<notes><![CDATA[Show the results of a search]]></notes>
|
||||
</search_show>
|
||||
<update>
|
||||
<name>update</name>
|
||||
<notes><![CDATA[Update a record]]></notes>
|
||||
</update>
|
||||
<view>
|
||||
<name>view</name>
|
||||
<notes><![CDATA[View a record]]></notes>
|
||||
</view>
|
||||
</module_method>
|
||||
</install>
|
Reference in New Issue
Block a user