still thinking about which function need to add as default. currently customer, plan, pool

This commit is contained in:
Ibnu Maksum
2024-06-04 17:14:04 +07:00
parent 97f724c8c2
commit 0cc1ffe90f
7 changed files with 776 additions and 1061 deletions

79
system/devices/readme.md Normal file
View File

@ -0,0 +1,79 @@
# How To add new Devices
just follow the template
```php
<?php
class FileName {
function connect_customer($customer, $plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function disconnect_customer($customer, $plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function change_customer($tur, $customer, $plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function add_plan($plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function update_plan($old_name, $plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function remove_plan($plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function add_pool($pool){
global $_app_stage;
if ($_app_stage == 'demo') {
return null;
}
}
function update_pool($old_pool, $new_pool){
global $_app_stage;
if ($_app_stage == 'demo') {
return null;
}
}
function remove_pool($pool){
global $_app_stage;
if ($_app_stage == 'demo') {
return null;
}
}
}
```