Changeset 934 for trunk/Packages/Common


Ignore:
Timestamp:
May 11, 2022, 10:07:18 PM (3 years ago)
Author:
chronos
Message:
  • Added: System names for Permission groups.
Location:
trunk/Packages/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/ModelDesc.php

    r923 r934  
    1616    $this->PrimaryKey = 'Id';
    1717    $this->Memory = false;
     18    $this->DefaultValuesMethod = null;
    1819  }
    1920
  • trunk/Packages/Common/Modules/ModuleManager.php

    r912 r934  
    250250        'Type' => ModelColumnType::GetName($Field->Type), 'Nullable' => (int)$Field->Nullable));
    251251    }
     252    if ($ModelDesc->DefaultValues != null)
     253    {
     254      $Values = call_user_func('self::'.$ModelDesc->DefaultValues);
     255      foreach ($Values as $Value)
     256      {
     257        $this->Databse->insert($ModelDesc->Name, $Value);
     258      }
     259    }
    252260  }
    253261
Note: See TracChangeset for help on using the changeset viewer.