Changeset 538 for trunk/Modules/File
- Timestamp:
- May 18, 2013, 8:21:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/File/File.php
r524 r538 120 120 $this->System->AddModule(new File($this->System)); 121 121 $this->System->Modules['File']->FilesDir = dirname(__FILE__).'/../../'.$Config['Web']['UploadFileFolder']; 122 $this->System->FormManager->RegisterClass('File', array( 123 'Title' => 'Soubor', 124 'Table' => 'File', 125 'Items' => array( 126 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 127 'Directory' => array('Type' => 'TDirectory', 'Caption' => 'Adresář', 'Default' => '', 'Null' => true), 128 'Size' => array('Type' => 'Integer', 'Caption' => 'Velikost', 'Default' => ''), 129 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas vytvoření', 'Default' => ''), 130 ), 131 'ItemActions' => array( 132 array('Caption' => 'Stáhnout', 'URL' => '/file?download'), 133 ), 134 )); 135 $this->System->FormManager->RegisterClass('FileDirectory', array( 136 'Title' => 'Adresář souborů', 137 'Table' => 'FileDirectory', 138 'Items' => array( 139 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 140 'Parent' => array('Type' => 'TDirectory', 'Caption' => 'Nadřazený adresář', 'Default' => '', 'Null' => true), 141 ), 142 )); 143 122 144 } 123 145
Note:
See TracChangeset
for help on using the changeset viewer.