Changeset 370 for trunk/Modules/News/News.php
- Timestamp:
- Jan 19, 2012, 12:30:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/News.php
r358 r370 70 70 } 71 71 72 class NewsView extends View 73 { 74 function __construct() 75 { 76 $this->Name = 'News'; 77 $this->Title = 'Nová aktualita'; 78 $this->SubmitText = 'Vložit'; 79 AddItemOneToMany('Category', 'Kategorie', 'NewsGroup', '0'); 80 AddItemString('Title', 'Nadpis', ''); 81 AddItemText('Content', 'Obsah', ''); 82 AddItemFileName('Enclosure1', 'Přílohy (Max. velikost souboru 1 MB)', ''); 83 AddItemFileName('Enclosure2', '', ''); 84 AddItemFileName('Enclosure3', '', ''); 85 } 86 } 87 72 88 class ModuleNews extends Module 73 89 { … … 85 101 $this->Dependencies = array('User', 'Log'); 86 102 $this->Models = array('News', 'NewsCategory'); 103 $this->Views = array('News'); 87 104 } 88 105
Note:
See TracChangeset
for help on using the changeset viewer.