\AndroidApp
Android application implementation https://github.com/romaznova/ubilling
Synopsis
class AndroidApp
{
- // members
- protected array $json = ;
- protected bool $loggedIn = false;
- public bool $access = false;
- protected bool $success = true;
- protected bool $debug = false;
- protected void $message = '';
- protected array $data = ;
- protected array $debug_message = ;
- protected string $adminLogin = '';
- protected string $getModuleAction = '';
- protected string $getDate = '';
- protected string $getStartDate = '';
- protected string $getEndDate = '';
- protected bool $setGetDate = false;
- protected bool $setGetStartDate = false;
- protected array $permissions = ;
- protected array $needRights = ;
- protected array $usersData = ;
- protected array $adminsName = ;
- public string $login = '';
- protected $cache = '';
- // methods
- public void __construct()
- protected void setGetModuleAction()
- protected void setGetDate()
- protected void loadPermissionCheckGlobal()
- public void loadData()
- public void getUserDhcpLog()
- public void getUserPingResult()
- protected void initCache()
- protected void clearScopeCache()
- public void filterStr()
- public void createComment()
- public void getUserData()
- protected void renderUserData()
- public void searchUsersQuery()
- protected void renderSerchUsersData()
- protected void getTasks()
- protected void getAllCashTypes()
- protected void getJobTypes()
- protected void initDebug()
- protected void setLogin()
- protected void initUsernameLogin()
- protected void loadAdminsName()
- protected array DebugMessageAddArr()
- protected array DebugGlobalMessageAdd()
- public array DebugMessageAdd()
- protected array permissionCheckAdd()
- public array checkRight()
- public void updateSuccessAndMessage()
- protected array CreateJsonData()
- public array/json RenderJson()
Members
protected
- $adminLogin
—
string
Contains current user login - $adminsName
—
array
Contains admns Name as admin_login => admin_name - $cache
—
UbillingCache object placeholder - $data
—
array
Main data conteiner - $debug
—
bool
Debug status flag - $debug_message
—
array
Contains debug message and information - $getDate
—
string
Contains date at function curdate() - $getEndDate
—
string
Contains date at function curdate() - $getModuleAction
—
string
Contains action for API - $getStartDate
—
string
Contains date at function curdate() - $json
—
array
Contains data for next convert on json data - $loggedIn
—
bool
USER LOGGED flag - $message
—
void
Some information massege - $needRights
—
array
Return all checking permissions - $permissions
—
array
Return all needed permissions - $setGetDate
—
bool
Change default $getDate that getting from $_GET - $setGetStartDate
—
bool
Change default $getStartDate that getting from $_GET - $success
—
bool
Operation status flag - $usersData
—
array
Conteins users data
public
- $access
—
bool
Access status flag - $login
—
string
Current user login. Must be set in constructor
Methods
protected
- CreateJsonData() — Crete Json objects
- DebugGlobalMessageAdd() — Function for add GLOBAL debug information
- DebugMessageAddArr() — Function for add debug information from function
- clearScopeCache() — Clear scope cache object
- getAllCashTypes() — Return array of all available cashtypes as id=>name
- getJobTypes()
- getTasks()
- initCache() — Initalizes system cache object for further usage
- initDebug() — Sets current user login
- initUsernameLogin() — Sets current user login
- loadAdminsName() — Loads admis Name
- loadPermissionCheckGlobal() — Set check permissons for modules that use global
- permissionCheckAdd() — Function for add information about module permission
- renderSerchUsersData()
- renderUserData()
- setGetDate() — Check getting date
- setGetModuleAction() — Check getting module
- setLogin() — Sets current user login
public
- __construct()
- DebugMessageAdd() — Function for add debug information
- RenderJson() — GENERAL FUNCTION Render Json objects
- checkRight() — Function for add debug information
- createComment() — Creates new comment in database
- filterStr() — Filtering variables
- getUserData()
- getUserDhcpLog() — Get user dhcp log
- getUserPingResult() — Get user ping result
- loadData()
- searchUsersQuery()
- updateSuccessAndMessage() — Check getting date