Ignore:
Timestamp:
Mar 28, 2022, 12:17:44 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Improved model definitions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/System/SystemModels.php

    r899 r923  
    66  {
    77    $Desc = new ModelDesc(self::GetClassName());
     8    $Desc->AddString('Unit');
    89    $Desc->AddString('Name');
    9     $Desc->AddString('Unit');
    1010    return $Desc;
    1111  }
     
    1818    $Desc = new ModelDesc(self::GetClassName());
    1919    $Desc->AddString('Title');
     20    $Desc->AddReference('Type', ActionType::GetClassName());
    2021    $Desc->AddString('URL');
     22    $Desc->AddReference('Group', ActionGroup::GetClassName());
    2123    $Desc->AddReference('Icon', ActionIcon::GetClassName());
    22     $Desc->AddReference('Type', ActionType::GetClassName());
    23     $Desc->AddReference('Group', ActionGroup::GetClassName());
    2424    $Desc->AddReference('PermissionOperation', PermissionOperation::GetClassName());
    25     $Desc->AddBoolean('Enable');
     25    $Column = $Desc->AddBoolean('Enable');
     26    $Column->Default = true;
    2627    return $Desc;
    2728  }
Note: See TracChangeset for help on using the changeset viewer.