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

  • AbstractWeightAwarePaletteCondition
  • DefaultPaletteCondition
  • PaletteConditionChain
  • PropertyFalseCondition
  • PropertyTrueCondition
  • PropertyValueCondition

Interfaces

  • PaletteConditionInterface
  • WeightAwarePaletteConditionInterface
  • 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\DataDefinition\Palette\Condition\Palette;
14: 
15: /**
16:  * This is the abstract base class for weight aware palette conditions.
17:  *
18:  * @package DcGeneral\DataDefinition\Palette\Condition\Palette
19:  */
20: abstract class AbstractWeightAwarePaletteCondition implements WeightAwarePaletteConditionInterface
21: {
22:     /**
23:      * The weight of this condition.
24:      *
25:      * @var int
26:      */
27:     protected $weight = 1;
28: 
29:     /**
30:      * {@inheritdoc}
31:      */
32:     public function setWeight($weight)
33:     {
34:         $this->weight = $weight;
35:         return $this;
36:     }
37: 
38:     /**
39:      * {@inheritdoc}
40:      */
41:     public function getWeight()
42:     {
43:         return $this->weight;
44:     }
45: }
46: 
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0