Info update about DB\IO insert_id_ext deprecation
This commit is contained in:
@@ -69,7 +69,7 @@ print '<div><a href="class_test.randomkey.php">Class Test: RANDOM KEY</a></div>'
|
||||
print '<div><a href="class_test.system.php">Class Test: SYSTEM</a></div>';
|
||||
print '<div><a href="class_test.runningtime.php">Class Test: RUNNING TIME</a></div>';
|
||||
print '<div><a href="class_test.debug.php">Class Test: DEBUG</a></div>';
|
||||
print '<div><a href="class_test.form.php">Class Test: FORM</a></div>';
|
||||
print '<div><a href="class_test.output.form.php">Class Test: OUTPUT FORM</a></div>';
|
||||
print '<div><a href="class_test.backend.php">Class Test: BACKEND ADMIN CLASS</a></div>';
|
||||
print '<div><a href="class_test.lang.php">Class Test: LANG/L10n</a></div>';
|
||||
print '<div><a href="class_test.smarty.php">Class Test: SMARTY</a></div>';
|
||||
|
||||
@@ -901,7 +901,7 @@ class IO
|
||||
* - if many this will also hold all non pk names too
|
||||
* then try to fill insert_id_arr, this is always multi level
|
||||
* - fill key: value as single array or multi array
|
||||
* insert_id_ext
|
||||
* insert_id_ext [DEPRECATED, all in insert_id_arr]
|
||||
* - holds all returning as array
|
||||
* TODO: Only use insert_id_arr and use functions to get ok array or single
|
||||
* @param boolean $returning_id
|
||||
@@ -2344,6 +2344,8 @@ class IO
|
||||
*
|
||||
* On multiple insert return the position for which to return can be set too
|
||||
*
|
||||
* Replacement for insert_id_ext array access before
|
||||
*
|
||||
* @param string|null $key
|
||||
* @param integer|null $pos
|
||||
* @return array<mixed>|string|int|null
|
||||
|
||||
@@ -371,7 +371,7 @@ class Generate extends \CoreLibs\DB\Extended\ArrayIO
|
||||
$this->load_query = $config_array['load_query'];
|
||||
}
|
||||
$this->archive_pk_name = 'a_' . $this->pk_name;
|
||||
$this->col_name = str_replace('_id', '', $this->pk_name);
|
||||
$this->col_name = str_replace('_id', '', $this->pk_name ?? '');
|
||||
$this->int_pk_name = $this->pk_name;
|
||||
// check if reference_arrays are given and proceed them
|
||||
if (isset($config_array['reference_arrays']) && is_array($config_array['reference_arrays'])) {
|
||||
|
||||
Reference in New Issue
Block a user