File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Events/Attribute/Checkbox Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 33/**
44 * This file is part of MetaModels/attribute_checkbox.
55 *
6- * (c) 2012-2016 The MetaModels team.
6+ * (c) 2012-2018 The MetaModels team.
77 *
88 * For the full copyright and license information, please view the LICENSE
99 * file that was distributed with this source code.
1313 * @package MetaModels
1414 * @subpackage AttributeCheckbox
1515 * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
16- * @copyright 2012-2016 The MetaModels team.
16+ * @author Sven Baumann <baumann.sv@gmail.com>
17+ * @copyright 2012-2018 The MetaModels team.
1718 * @license https://github.com/MetaModels/attribute_checkbox/blob/master/LICENSE LGPL-3.0
1819 * @filesource
1920 */
@@ -36,6 +37,6 @@ public function __construct()
3637
3738 $ this ->typeName = 'checkbox ' ;
3839 $ this ->typeIcon = 'system/modules/metamodelsattribute_checkbox/html/checkbox.png ' ;
39- $ this ->typeClass = ' MetaModels\Attribute\ Checkbox\Checkbox ' ;
40+ $ this ->typeClass = Checkbox::class ;
4041 }
4142}
Original file line number Diff line number Diff line change 2222
2323namespace MetaModels \Events \Attribute \Checkbox ;
2424
25+ use Contao \FilesModel ;
2526use ContaoCommunityAlliance \DcGeneral \Contao \DataDefinition \Definition \Contao2BackendViewDefinition ;
2627use ContaoCommunityAlliance \DcGeneral \Contao \DataDefinition \Definition \Contao2BackendViewDefinitionInterface ;
2728use ContaoCommunityAlliance \DcGeneral \DataDefinition \Definition \View \ToggleCommand ;
@@ -75,8 +76,8 @@ protected function buildCommand($attribute)
7576 );
7677 $ extra = $ toggle ->getExtra ();
7778 $ extra ['icon ' ] = 'visible.gif ' ;
78- $ objIconEnabled = \ FilesModel::findByUuid ($ attribute ->get ('check_listviewicon ' ));
79- $ objIconDisabled = \ FilesModel::findByUuid ($ attribute ->get ('check_listviewicondisabled ' ));
79+ $ objIconEnabled = FilesModel::findByUuid ($ attribute ->get ('check_listviewicon ' ));
80+ $ objIconDisabled = FilesModel::findByUuid ($ attribute ->get ('check_listviewicondisabled ' ));
8081
8182 if ($ attribute ->get ('check_listview ' ) == 1 && $ objIconEnabled ->path && $ objIconDisabled ->path ) {
8283 $ extra ['icon ' ] = $ objIconEnabled ->path ;
Original file line number Diff line number Diff line change 33/**
44 * This file is part of MetaModels/attribute_checkbox.
55 *
6- * (c) 2012-2016 The MetaModels team.
6+ * (c) 2012-2018 The MetaModels team.
77 *
88 * For the full copyright and license information, please view the LICENSE
99 * file that was distributed with this source code.
1313 * @package MetaModels
1414 * @subpackage AttributeCheckbox
1515 * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
16- * @copyright 2012-2016 The MetaModels team.
16+ * @author Sven Baumann <baumann.sv@gmail.com>
17+ * @copyright 2012-2018 The MetaModels team.
1718 * @license https://github.com/MetaModels/attribute_checkbox/blob/master/LICENSE LGPL-3.0
1819 * @filesource
1920 */
@@ -36,7 +37,7 @@ public function __construct()
3637 $ this
3738 ->setTypeName ('checkbox_published ' )
3839 ->setTypeIcon ('system/modules/metamodels/html/visible.png ' )
39- ->setTypeClass (' MetaModels\Filter\Setting\Published\ Checkbox' )
40+ ->setTypeClass (Checkbox::class )
4041 ->allowAttributeTypes ('checkbox ' );
4142 }
4243}
You can’t perform that action at this time.
0 commit comments