Overview

Namespaces

  • DcGeneral
    • Clipboard
    • Contao
      • Callback
      • Compatibility
      • DataDefinition
        • Definition
      • Dca
        • Builder
          • Legacy
        • Definition
        • Palette
        • Populator
      • Event
      • View
        • Contao2BackendView
          • Event
    • Controller
    • Data
    • DataDefinition
      • Builder
      • Definition
        • Properties
        • View
          • Panel
      • ModelRelationship
      • Palette
        • Builder
          • Event
        • Condition
          • Palette
          • Property
    • EnvironmentPopulator
    • Event
    • Exception
    • Factory
      • Event
    • Panel
    • View
      • Event

Classes

  • ExtendedDca
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * PHP version 5
 4:  * @package    generalDriver
 5:  * @author     Christian Schiffler <c.schiffler@cyberspectrum.de>
 6:  * @author     Stefan Heimes <stefan_heimes@hotmail.com>
 7:  * @author     Tristan Lins <tristan.lins@bit3.de>
 8:  * @copyright  The MetaModels team.
 9:  * @license    LGPL.
10:  * @filesource
11:  */
12: 
13: namespace DcGeneral\Contao\Dca\Definition;
14: 
15: use DcGeneral\DataDefinition\Definition\DefinitionInterface;
16: 
17: /**
18:  * Class ExtendedDca.
19:  *
20:  * This interface holds information that extends the default DC_Table compatible definition.
21:  * It holds reference of which classes to use for the controller, the view and the callbacks.
22:  *
23:  * @package DcGeneral\Contao\Dca\Definition
24:  */
25: class ExtendedDca implements DefinitionInterface
26: {
27:     const NAME = 'extended-dca';
28: 
29:     /**
30:      * Controller class to use.
31:      *
32:      * @var string
33:      */
34:     protected $controllerClass;
35: 
36:     /**
37:      * View class to use.
38:      *
39:      * @var string
40:      */
41:     protected $viewClass;
42: 
43:     /**
44:      * Set the class name of the controller class.
45:      *
46:      * @param string $controllerClass The class name.
47:      *
48:      * @return void
49:      */
50:     public function setControllerClass($controllerClass)
51:     {
52:         $this->controllerClass = $controllerClass;
53:     }
54: 
55:     /**
56:      * Get the class name of the controller class.
57:      *
58:      * @return string
59:      */
60:     public function getControllerClass()
61:     {
62:         return $this->controllerClass;
63:     }
64: 
65:     /**
66:      * Set the class name of the view class.
67:      *
68:      * @param string $viewClass The class name.
69:      *
70:      * @return void
71:      */
72:     public function setViewClass($viewClass)
73:     {
74:         $this->viewClass = $viewClass;
75:     }
76: 
77:     /**
78:      * Get the class name of the view class.
79:      *
80:      * @return string
81:      */
82:     public function getViewClass()
83:     {
84:         return $this->viewClass;
85:     }
86: }
87: 
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0