<?php

class settingModel extends mainModel {
    public function __construct() {
        $registry = Registry::getInstance();
        $registry->user = new User();
        $registry->role = new Role();
        $registry->permission = new Permission();
        $registry->setting_class = new SettingClass();
        $registry->role_permission = new RolePermissionFactory();
        
        //        $registry->Organization             = new Organization;
        //        $registry->Invoice                  = new Invoice();
        //        $registry->Invoicepos                  = new Invoicepos();
        //        $registry->permission               = new Permission();
        //        $registry->vehicle                  = new Vehicle;
        //        $registry->employee                 = new Employee();
        //        $registry->jv                       = new JV();
        //        $registry->product                  = new Product();
        //        $registry->currency                 = new Currency();
        //        $registry->material                 = new Material();
        //        $registry->factory = new RolePermissionFactory();
        //        $registry->return = new ReturnInvoice();
        //        $registry->customer = new Customer;
        //        $registry->supplier = new Supplier;
        //        $registry->depot = new WarehouseDepot;
        //        $registry->payment = new Payment;
        //        $registry->contra = new Contra;
        //        $registry->expense = new Expense;
        //        $registry->vendor = new Supplier;
        //        $registry->Product = new Product;
        //        $registry->production = new production();
        //        $registry->forms = new Forms();
        //        $registry->CommonACC         = new CommonACC;
        //        $registry->crmClass = new crmClass();
        //        $registry->restaurantpos = new restaurant_pos();
        //        $registry->worktime = new WorkingTimes();
        //        $registry->job = new Job();
    }
    public static function getmsg($msg) {
        //            session_start();
        //            $lang = new CommonLanguage();
        return CommonLanguage::getMessage($msg);
    }
}
