Changeset 711 for trunk/Modules/System/System.php
- Timestamp:
- Dec 29, 2014, 12:43:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/System/System.php
r623 r711 182 182 $this->System->RegisterPage('module', 'PageModules'); 183 183 $this->System->FormManager->RegisterClass('Action', array( 184 'Title' => 'Akce', 185 'Table' => 'Action', 186 'Items' => array( 187 //'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 188 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 189 'URL' => array('Type' => 'Hyperlink', 'Caption' => 'Odkaz', 'Default' => ''), 190 'Icon' => array('Type' => 'TActionIcon', 'Caption' => 'Ikony', 'Default' => '', 'Null' => true), 191 'Type' => array('Type' => 'TActionType', 'Caption' => 'Typ', 'Default' => ''), 192 'Group' => array('Type' => 'TActionGroup', 'Caption' => 'Skupina', 'Default' => '', 'Null' => true), 193 'PermissionOperation' => array('Type' => 'TPermissionOperation', 'Caption' => 'Operace oprávnění', 'Default' => ''), 194 'Enable' => array('Type' => 'Boolean', 'Caption' => 'Povolení', 'Default' => ''), 195 ), 196 )); 197 $this->System->FormManager->RegisterClass('ActionIcon', array( 198 'Title' => 'Ikony akcí', 199 'Table' => 'ActionIcon', 200 'Items' => array( 201 'Name' => array('Type' => 'Image', 'Caption' => 'Název souboru', 'Default' => ''), 202 'Items' => array('Type' => 'TActionListIcon', 'Caption' => 'Položky', 'Default' => ''), 203 ), 204 )); 205 $this->System->FormManager->RegisterClass('ActionGroup', array( 206 'Title' => 'Skupiny akcí', 207 'Table' => 'ActionGroup', 208 'Items' => array( 209 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 210 'Items' => array('Type' => 'TActionListGroup', 'Caption' => 'Položky', 'Default' => ''), 211 ), 212 )); 213 $this->System->FormManager->RegisterClass('ActionType', array( 214 'Title' => 'Typy akcí', 215 'Table' => 'ActionType', 216 'Items' => array( 217 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 218 'Items' => array('Type' => 'TActionListType', 'Caption' => 'Položky', 'Default' => ''), 219 ), 220 )); 221 184 'Title' => 'Akce', 185 'Table' => 'Action', 186 'Items' => array( 187 //'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 188 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 189 'URL' => array('Type' => 'Hyperlink', 'Caption' => 'Odkaz', 'Default' => ''), 190 'Icon' => array('Type' => 'TActionIcon', 'Caption' => 'Ikony', 'Default' => '', 'Null' => true), 191 'Type' => array('Type' => 'TActionType', 'Caption' => 'Typ', 'Default' => ''), 192 'Group' => array('Type' => 'TActionGroup', 'Caption' => 'Skupina', 'Default' => '', 'Null' => true), 193 'PermissionOperation' => array('Type' => 'TPermissionOperation', 'Caption' => 'Operace oprávnění', 'Default' => ''), 194 'Enable' => array('Type' => 'Boolean', 'Caption' => 'Povolení', 'Default' => ''), 195 ), 196 )); 197 $this->System->FormManager->RegisterClass('ActionIcon', array( 198 'Title' => 'Ikony akcí', 199 'Table' => 'ActionIcon', 200 'Items' => array( 201 'Name' => array('Type' => 'Image', 'Caption' => 'Název souboru', 'Default' => ''), 202 'Items' => array('Type' => 'TActionListIcon', 'Caption' => 'Položky', 'Default' => ''), 203 ), 204 )); 205 $this->System->FormManager->RegisterClass('ActionGroup', array( 206 'Title' => 'Skupiny akcí', 207 'Table' => 'ActionGroup', 208 'Items' => array( 209 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 210 'Items' => array('Type' => 'TActionListGroup', 'Caption' => 'Položky', 'Default' => ''), 211 ), 212 )); 213 $this->System->FormManager->RegisterClass('ActionType', array( 214 'Title' => 'Typy akcí', 215 'Table' => 'ActionType', 216 'Items' => array( 217 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 218 'Items' => array('Type' => 'TActionListType', 'Caption' => 'Položky', 'Default' => ''), 219 ), 220 )); 221 $this->System->FormManager->RegisterClass('Module', array( 222 'Title' => 'Moduly', 223 'Table' => 'Module', 224 'Items' => array( 225 'Name' => array('Type' => 'String', 'Caption' => 'Systémové jméno', 'Default' => ''), 226 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 227 ), 228 )); 229 $this->System->FormManager->RegisterClass('Language', array( 230 'Title' => 'Jazyky', 231 'Table' => 'Language', 232 'DefaultSortColumn' => 'Name', 233 'Items' => array( 234 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 235 ), 236 )); 237 $this->System->FormManager->RegisterClass('UnitOfMeasure', array( 238 'Title' => 'Měrné jednotky', 239 'Table' => 'UnitOfMeasure', 240 'DefaultSortColumn' => 'Name', 241 'Items' => array( 242 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 243 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''), 244 ), 245 )); 246 $this->System->FormManager->RegisterClass('Country', array( 247 'Title' => 'Země', 248 'Table' => 'Country', 249 'DefaultSortColumn' => 'Name', 250 'Items' => array( 251 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 252 ), 253 )); 254 $this->System->FormManager->RegisterFormType('TUnitOfMeasure', array( 255 'Type' => 'Reference', 256 'Table' => 'UnitOfMeasure', 257 'Id' => 'Id', 258 'Name' => 'Name', 259 'Filter' => '1', 260 )); 261 $this->System->FormManager->RegisterFormType('TLanguage', array( 262 'Type' => 'Reference', 263 'Table' => 'Language', 264 'Id' => 'Id', 265 'Name' => 'Name', 266 'Filter' => '1', 267 )); 268 $this->System->FormManager->RegisterFormType('TAction', array( 269 'Type' => 'Reference', 270 'Table' => 'Action', 271 'Id' => 'Id', 272 'Name' => 'Title', 273 'Filter' => '1', 274 )); 275 $this->System->FormManager->RegisterFormType('TActionIcon', array( 276 'Type' => 'Reference', 277 'Table' => 'ActionIcon', 278 'Id' => 'Id', 279 'Name' => 'Name', 280 'Filter' => '1', 281 )); 282 $this->System->FormManager->RegisterFormType('TActionType', array( 283 'Type' => 'Reference', 284 'Table' => 'ActionType', 285 'Id' => 'Id', 286 'Name' => 'Name', 287 'Filter' => '1', 288 )); 289 $this->System->FormManager->RegisterFormType('TActionGroup', array( 290 'Type' => 'Reference', 291 'Table' => 'ActionGroup', 292 'Id' => 'Id', 293 'Name' => 'Name', 294 'Filter' => '1', 295 )); 296 $this->System->FormManager->RegisterFormType('TModule', array( 297 'Type' => 'Reference', 298 'Table' => 'Module', 299 'Id' => 'Id', 300 'Name' => 'Name', 301 'Filter' => '1', 302 )); 303 222 304 //$this->Manager->OnModuleChange = array($this, 'ModuleChange'); 223 305 //$this->LoadFromDatabase();
Note:
See TracChangeset
for help on using the changeset viewer.