<?php

namespace App\System\Model;
use App\System\Basic\beModel;

class ModuleLogModel extends beModel {
    public $table = "be_module_logs";
    public $primary_key = "mlid";
    //@ioncube.dk beEncrypt("be_diyocp","beCreateModuleLog") -> "00c7a6c09053fa27c77580b518b6724c" RANDOM
    public static function beCreateModuleLog($upid,$module,$name,$description,$data = [],$onlyadmin = "1"){
        return self::beInsert([
            "upid" => $upid,
            "mlmodule" => $module,
            "mlname" => $name,
            "mldescription" => $description,
            "mldata" => json_encode($data,JSON_UNESCAPED_UNICODE),
            "mlonlyadmin" => $onlyadmin,
            "mldateline" => BE_TIME
        ]);
    }
}

?>