mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
25 lines
832 B
PHP
25 lines
832 B
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
/**
|
|
* This file create fields
|
|
* @deprecated
|
|
* This file is deprecated, please call directly Update::create_fields($fields);
|
|
*
|
|
* INPUT: $fields
|
|
*/
|
|
|
|
if (!isset($fields) || empty($fields) || !is_array($fields)) {
|
|
die('$fields empty');
|
|
}
|
|
|
|
// example field:
|
|
//$fields[] = array('module'=>'Corsi','block'=>'Informazioni Corso','name'=>'prodotto','label'=>'Prodotto','uitype'=>'10','columntype'=>'INT(19)','typeofdata'=>'I~O','relatedModules'=>array('Products'),'relatedModulesAction'=>array('Products'=>array('ADD','SELECT')));
|
|
|
|
$vtlib_Utils_Log = true;
|
|
|
|
require_once('modules/Update/Update.php');
|
|
|
|
Update::create_fields($fields); |