-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdescriptor.php
More file actions
executable file
·50 lines (34 loc) · 890 Bytes
/
descriptor.php
File metadata and controls
executable file
·50 lines (34 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
namespace Icybee\Modules\Forms;
use ICanBoogie\ActiveRecord\Model;
use ICanBoogie\Module\Descriptor;
return [
Descriptor::ID => 'forms',
Descriptor::CATEGORY => 'feedback',
Descriptor::DESCRIPTION => 'Create forms based on models',
Descriptor::INHERITS => 'nodes',
Descriptor::MODELS => [
'primary' => [
Model::EXTENDING => 'nodes',
Model::SCHEMA => [
'modelid' => [ 'varchar', 64 ],
'before' => 'text',
'after' => 'text',
'complete' => 'text',
'is_notify' => 'boolean',
'notify_destination' => 'varchar',
'notify_from' => 'varchar',
'notify_bcc' => 'varchar',
'notify_subject' => 'varchar',
'notify_template' => 'text',
'page_id' => 'foreign'
]
]
],
Descriptor::NS => __NAMESPACE__,
Descriptor::PERMISSIONS => [
'post form'
],
Descriptor::REQUIRES => [ 'editor' ],
Descriptor::TITLE => "Forms"
];