Geliştirici Merkezi

TR

__construct()

Sınıf başlatıldıktan sonra çalıştırılmaktadır, ayarlamalar sayfasındaki değerleri API sınıfına tanımlar.

API servisinin dosyalarını örnekte olduğu gibi içeri aktarabilirsiniz.

function __construct(){

    $this->config   = Modules::Config("Product",__CLASS__);
    $this->lang     = Modules::Lang("Product",__CLASS__);

    if(!class_exists("ExampleSSL_API")) include __DIR__.DS."api.php";

    $username   = $this->config["settings"]["username"];
    $password   = $this->config["settings"]["password"];
    $password   = Crypt::decode($password,Config::get("crypt/system"));
    $tmode      = (bool) $this->config["settings"]["test-mode"];

    $this->api =  new ExampleSSL_API($tmode);

    $this->api->set_credentials($username,$password);
}
set_order()

Bir Sorunuz mu Var?

Bize yazmaktan çekinmeyin. En kısa sürede yanıt göndereceğiz.
Bize Ulaşın.
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top