Example #1
0
File: menu.php Project: raku/MorCMS
 protected function items()
 {
     return array(CRUD_Item_Text::e('title')->show()->edit()->length(1, 100)->notnull(true), CRUD_Item_Text::e('title_url')->show()->edit()->length(1, 100)->notnull(true), CRUD_Item_ManyToMany::e('pages')->show()->edit()->field('name')->right(), CRUD_Item_Date::e('date')->show()->auto()->format('d.m.Y H:i'));
 }
Example #2
0
File: user.php Project: raku/MorCMS
 protected function items()
 {
     return array(CRUD_Item_Text::e('email')->show()->edit()->filter()->length(1, 100)->notnull(true), CRUD_Item_Text::e('username')->show()->edit()->filter()->length(1, 100)->notnull(true), CRUD_Item_ManyToMany::e('roles')->show()->edit()->all()->field('name')->right(), CRUD_Item_Password::e('password')->repeat()->nothash()->edit()->length(8, 100)->notnull(true), CRUD_Item_Text::e('logins')->show(), CRUD_Item_Date::e('last_login')->show()->format('d.m.Y H:i'));
 }
Example #3
0
File: page.php Project: raku/MorCMS
 protected function items()
 {
     return array(CRUD_Item_Options::e('publish')->show()->yesno()->notnull(true)->edit()->right(), CRUD_Item_Text::e('name')->show()->edit()->length(1, 100)->notnull(true), CRUD_Item_Text::e('name_url')->show()->edit()->length(1, 100)->notnull(true), CRUD_Item_Date::e('date')->show()->auto()->format('d.m.Y H:i')->right(), CRUD_Item_Content::e('content')->show()->edit()->editor(new CRUD_Editor_WYMEditor()), CRUD_Item_ManyToMany::e('menu')->show()->edit()->all()->field('title')->right());
 }
Example #4
0
File: role.php Project: raku/MorCMS
 protected function items()
 {
     return array(CRUD_Item_Text::e('name')->show()->edit()->length(1, 100)->notnull(true), CRUD_Item_Content::e('description')->show()->edit(), CRUD_Item_ManyToMany::e('users')->show()->field('username'));
 }