Developer Center

Parameters

The parameters specified here describe the predefined variables within the class.

Variable Name Description
$this->version
The version number of the module. It is required to be changed in each version the class. It is in core class .
$this->config
Gives the content of "config.php" file located in the module.
$this->error
If you need to return failed result in the function, you can place the error message in this variable.
$this->_name
Name of the Module
$this->lang[]
System automatically specifies which language to be selected. It brings the content of php file in "lang/" directory.
$this->area_link
Includes URL link of admin area, client area, service detail page.
$this->url
Gives the directory, where the module is located, as URL address.
Example: https://.../coremio/modules/Addons/SampleAddon/
$this->dir
Gives the directory path where the module is located.
Example: DOCUMENT ROOT --/coremio/modules/Addons/SampleAddon/
$this->user[]
When it is in the Client or Sub-Page are, includes all details of client in [array] format.
$this->user["id"]
Client ID Number
Database Field: users.id
$this->user["name"]
Client First Name
Database Field: users.name
$this->user["surname"]
Client Last Name
Database Field: users.surname
$this->user["full_name"]
Client Full Name
Database Field: users.full_name
$this->user["email"]
Client E-Mail Address
Database Field: users.email
$this->user["phone"]
Client GSM Number (Without +)
Database Field: users.phone
$this->user["lang"]
Client Defined Language Code (Ex:en, de, fr, tr, etc.)
Database Field: users.lang
$this->user["country"]
Client Defined Country Code (Ex: US, DE, FR, TR etc.)
Database Field: users.country
$this->user["address"]
Client Default Defined Address Information (Includes array)
Database Field: users_addresses
$this->user["address"]["country_name"]
Address Country Name
$this->user["address"]["country_code"]
Address Country Code (US, DE,TR,FR etc.)
$this->user["address"]["city"]
Address City Name
$this->user["address"]["counti"]
Address County name
$this->user["address"]["zipcode"]
Address Postal Code
$this->admin[]
It contains all the details of the administrator in [array] type.
$this->admin["id"]
Administrator ID Number
Database Field: users.id
$this->admin["name"]
Administrator First Name
Database Field: users.name
$this->admin["surname"]
Administrator Last Name
Database Field: users.surname
$this->admin["full_name"]
Administrator Full Name
Database Field: users.full_name
$this->admin["email"]
Administrator E-Mail Address
Database Field: users.email
$this->admin["phone"]
Administrator GSM Number (Without +)
Database Field: users.phone
$this->admin["lang"]
Administrator Defined Language Code (Ex:en, de, fr, tr, etc.)
Database Field: users.lang
$this->admin["country"]
Administrator Defined Country Code (Ex: US, DE, FR, TR etc.)
Database Field: users.country
Enabling & Disabling Admin Area Content / Output

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top

New Year's Special Discount

"Startup Lifetime" and "Professional Lifetime" licenses are 30% off!

Coupon Code:
HAPPYYEARS30 Copied!
Discount Rate 30%
Expiration Date December 31, 2024