mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/CustomData
* removed unused option to have custom data defined in code * table `aowow_setup_custom_data` should be used instead * this kills a "creation of dynamic property" deprecation notice
This commit is contained in:
@@ -42,11 +42,7 @@ trait TrCustomData
|
||||
public function applyCustomData() : bool
|
||||
{
|
||||
$ok = true;
|
||||
$this->customData = $this->customData ?? [];
|
||||
if ($cd = DB::Aowow()->selectCol('SELECT `entry` AS ARRAY_KEY, `field` AS ARRAY_KEY2, `value` FROM ?_setup_custom_data WHERE `command` = ?', $this->getName()))
|
||||
$this->customData += $cd;
|
||||
|
||||
foreach ($this->customData as $id => $data)
|
||||
foreach ((DB::Aowow()->selectCol('SELECT `entry` AS ARRAY_KEY, `field` AS ARRAY_KEY2, `value` FROM ?_setup_custom_data WHERE `command` = ?', $this->getName()) ?: []) as $id => $data)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user