1 | <?php |
||
15 | class BaseAssetAdmin extends Admin |
||
16 | { |
||
|
|||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $baseRouteName = 'admin_cmf_assets_baseasset'; |
||
23 | |||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $baseRoutePattern = '/cms/assets/baseasset'; |
||
30 | |||
31 | /** |
||
32 | * @var boolean |
||
33 | */ |
||
34 | protected $codeMirrorEnabled = false; |
||
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | * |
||
39 | * @see \Sonata\AdminBundle\Admin\Admin::configureListFields() |
||
40 | */ |
||
41 | protected function configureListFields(ListMapper $listMapper) |
||
47 | |||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | * |
||
51 | * @see \Sonata\AdminBundle\Admin\Admin::configureFormFields() |
||
52 | */ |
||
53 | protected function configureFormFields(FormMapper $formMapper) |
||
69 | |||
70 | /** |
||
71 | * {@inheritDoc} |
||
72 | * |
||
73 | * @see \Sonata\AdminBundle\Admin\Admin::configureDatagridFilters() |
||
74 | */ |
||
75 | protected function configureDatagridFilters(DatagridMapper $datagridMapper) |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | * |
||
83 | * @see \Sonata\AdminBundle\Admin\Admin::getExportFormats() |
||
84 | */ |
||
85 | public function getExportFormats() |
||
89 | |||
90 | /** |
||
91 | * {@inheritDoc} |
||
92 | * |
||
93 | * @see \Sonata\DoctrinePHPCRAdminBundle\Admin\Admin::toString() |
||
94 | */ |
||
95 | public function toString($object) |
||
101 | |||
102 | /** |
||
103 | * Replaces textarea with code mirror input |
||
104 | */ |
||
105 | public function enableCodeMirror() |
||
109 | |||
110 | /** |
||
111 | * Uses plain textarea |
||
112 | */ |
||
113 | public function disableCodeMirror() |
||
117 | |||
118 | /** |
||
119 | * @return array |
||
120 | */ |
||
121 | protected function getCodeMirrorParams() |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | * @see \Sonata\AdminBundle\Admin\Admin::getNewInstance() |
||
129 | */ |
||
130 | public function getNewInstance() |
||
138 | |||
139 | } |