Công cụ thành viên

Công cụ trang web


programming:module:gitupdate

Nâng cấp module chạy trên NukeViet 4.0.23 lên 4.0.24

Chỉnh sửa cache. Nếu module có sử dụng chức năng cache, cần thay đổi như sau:

nv_get_cache(  thành: $nv_Cache->getItem(
nv_set_cache(  thành: $nv_Cache->setItem(
nv_delete_all_cache(  thành: $nv_Cache->delAll(
nv_del_moduleCache(  thành: $nv_Cache->delMod(
nv_db_cache(  thành: $nv_Cache->db(

Nếu những chỗ nào dùng $nv_Cache trong function, thì cần global biến $nv_Cache Chỗ gọi hàm $nv_Cache→db() bắt buộc phải truyền vào 3 tham số:(câu lệnh sql, key, tên module) trong đó key có thể để trống, tên module dùng $module_name

Tìm kiếm để thay thế các đoạn gọi class của NukeViet

new download(   thành:     new NukeViet\Files\Download(
new image(    thành:   new NukeViet\Files\Image(
new upload(   thành:   new NukeViet\Files\Upload(
new UrlGetContents(   thành:  new NukeViet\Client\UrlGetContents(
new Diagnostic(   thành:  new NukeViet\Client\Diagnostic(
new Gfonts(     thành:    new NukeViet\Client\Gfonts(
new NV_Http(   thành:  new NukeViet\Http\Http(
new NVftp(    thành:   new NukeViet\Ftp\Ftp(
new PHPMailer;   thành:   new PHPMailer\PHPMailer\PHPMailer();
new PHPMailer();   thành:   new PHPMailer\PHPMailer\PHPMailer();
new Array2XML(    thành:  new NukeViet\Xml\Array2XML(

Các class sau mặc định không sử dung, nếu module, gia o diện của bạn còn sử dụng, cần viết lại các class này.

Minify_CSS_Compressor
CheckUrl
programming/module/gitupdate.txt · Sửa đổi lần cuối: 2016/01/08 08:45 bởi hoaquynhtim99