OSB enhancements to date
This commit is contained in:
22
modules/adsl_supplier/adsl_supplier.inc.php
Normal file
22
modules/adsl_supplier/adsl_supplier.inc.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* osBilling - Open Billing Software
|
||||
*
|
||||
* Originally authored by Deon George
|
||||
*
|
||||
* @author Deon George <deonATleenooksDOTnet>
|
||||
* @copyright 2009 Deon George
|
||||
* @link http://osb.leenooks.net
|
||||
* @package osBilling
|
||||
* @subpackage Modules:ADSL
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class provides the ability to define ADSL Suppliers.
|
||||
*
|
||||
* @package osBilling
|
||||
* @subpackage Modules:ADSL
|
||||
*/
|
||||
class adsl_supplier extends OSB_module {
|
||||
}
|
||||
?>
|
82
modules/adsl_supplier/adsl_supplier_construct.xml
Normal file
82
modules/adsl_supplier/adsl_supplier_construct.xml
Normal file
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<construct>
|
||||
<!-- define the module name -->
|
||||
<module>adsl_supplier</module>
|
||||
<!-- define the module table name -->
|
||||
<table>adsl_supplier</table>
|
||||
<!-- define the module dependancy(s) -->
|
||||
<dependancy/>
|
||||
<!-- define the DB cache in seconds -->
|
||||
<cache>0</cache>
|
||||
<!-- define the default order_by field for SQL queries -->
|
||||
<order_by>name</order_by>
|
||||
<!-- define the methods -->
|
||||
<limit>25</limit>
|
||||
|
||||
<!-- define the fields -->
|
||||
<field>
|
||||
<id>
|
||||
<type>I4</type>
|
||||
<unique>1</unique>
|
||||
<index>1</index>
|
||||
</id>
|
||||
<site_id>
|
||||
<type>I4</type>
|
||||
</site_id>
|
||||
<status>
|
||||
<display>Active</display>
|
||||
<type>L</type>
|
||||
</status>
|
||||
<debug>
|
||||
<type>L</type>
|
||||
</debug>
|
||||
<name>
|
||||
<display>Supplier</display>
|
||||
<type>C(128)</type>
|
||||
<min_len>1</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>any</validate>
|
||||
</name>
|
||||
<notes>
|
||||
<type>C(255)</type>
|
||||
</notes>
|
||||
<provision_plugin>
|
||||
<type>C(128)</type>
|
||||
<min_len>1</min_len>
|
||||
<max_len>128</max_len>
|
||||
</provision_plugin>
|
||||
<provision_plugin_data>
|
||||
<type>X2</type>
|
||||
<convert>array</convert>
|
||||
</provision_plugin_data>
|
||||
<max_accounts>
|
||||
<type>I4</type>
|
||||
</max_accounts>
|
||||
</field>
|
||||
|
||||
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
|
||||
<method>
|
||||
<add>name</add>
|
||||
<update>id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts</update>
|
||||
<delete>id</delete>
|
||||
<view>id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts</view>
|
||||
<search>id,status,debug,name,notes,provision_plugin,provision_plugin_data,max_accounts</search>
|
||||
</method>
|
||||
|
||||
<!-- define the method triggers -->
|
||||
<trigger>0</trigger>
|
||||
|
||||
<!-- Template Helpers -->
|
||||
<tpl>
|
||||
<search_show>
|
||||
<checkbox>
|
||||
<field>id</field>
|
||||
<type>checkbox</type>
|
||||
<width>25px</width>
|
||||
</checkbox>
|
||||
<supplier_id>
|
||||
<field>name</field>
|
||||
</supplier_id>
|
||||
</search_show>
|
||||
</tpl>
|
||||
</construct>
|
44
modules/adsl_supplier/adsl_supplier_install.xml
Normal file
44
modules/adsl_supplier/adsl_supplier_install.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<install>
|
||||
<module_properties>
|
||||
<display>ADSL Suppliers</display>
|
||||
<name>adsl_supplier</name>
|
||||
<table>adsl_supplier</table>
|
||||
<parent>adsl</parent>
|
||||
<notes><![CDATA[This module records the ADSL suppliers]]></notes>
|
||||
<dependancy>adsl</dependancy>
|
||||
<sub_modules></sub_modules>
|
||||
<menu_display>1</menu_display>
|
||||
</module_properties>
|
||||
|
||||
<sql_inserts>
|
||||
<module_method>
|
||||
<add>
|
||||
<display>Add</display>
|
||||
<name>add</name>
|
||||
<page><![CDATA[%%:add]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</add>
|
||||
<delete>
|
||||
<name>delete</name>
|
||||
</delete>
|
||||
<search>
|
||||
<name>search</name>
|
||||
</search>
|
||||
<search_show>
|
||||
<display>Search</display>
|
||||
<name>search_show</name>
|
||||
<notes><![CDATA[Allow users to view the search results]]></notes>
|
||||
</search_show>
|
||||
<update>
|
||||
<name>update</name>
|
||||
</update>
|
||||
<view>
|
||||
<display>List</display>
|
||||
<name>view</name>
|
||||
<page><![CDATA[core:search&module=%%&_escape=1]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</view>
|
||||
</module_method>
|
||||
</sql_inserts>
|
||||
</install>
|
29
modules/adsl_supplier/adsl_supplier_install_data.xml
Normal file
29
modules/adsl_supplier/adsl_supplier_install_data.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<install>
|
||||
<adsl_supplier>
|
||||
<id>1</id>
|
||||
<site_id>1</site_id>
|
||||
<status>1</status>
|
||||
<debug></debug>
|
||||
<name>Exetel</name>
|
||||
<notes></notes>
|
||||
<provision_plugin></provision_plugin>
|
||||
<provision_plugin_data><![CDATA[a:1:{i:0;s:0:"";}]]></provision_plugin_data>
|
||||
<max_accounts></max_accounts>
|
||||
</adsl_supplier>
|
||||
<adsl_supplier>
|
||||
<id>2</id>
|
||||
<site_id>1</site_id>
|
||||
<status>0</status>
|
||||
<debug></debug>
|
||||
<name>People</name>
|
||||
<notes></notes>
|
||||
<provision_plugin></provision_plugin>
|
||||
<provision_plugin_data></provision_plugin_data>
|
||||
<max_accounts></max_accounts>
|
||||
</adsl_supplier>
|
||||
|
||||
<adsl_supplier_id>
|
||||
<id>3</id>
|
||||
</adsl_supplier_id>
|
||||
</install>
|
Reference in New Issue
Block a user