| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* |
| 8 |
*/ |
| 9 |
class CJT_Models_Block_Parameters_Form_Parameter |
| 10 |
extends CJT_Models_Block_Parameters_Parameter { |
| 11 |
|
| 12 |
/** |
| 13 |
* put your comment there... |
| 14 |
* |
| 15 |
* @var mixed |
| 16 |
*/ |
| 17 |
protected $description; |
| 18 |
|
| 19 |
/** |
| 20 |
* put your comment there... |
| 21 |
* |
| 22 |
* @var mixed |
| 23 |
*/ |
| 24 |
protected $groupDescription; |
| 25 |
|
| 26 |
/** |
| 27 |
* put your comment there... |
| 28 |
* |
| 29 |
* @var mixed |
| 30 |
*/ |
| 31 |
protected $groupId; |
| 32 |
|
| 33 |
/** |
| 34 |
* put your comment there... |
| 35 |
* |
| 36 |
* @var mixed |
| 37 |
*/ |
| 38 |
protected $groupName; |
| 39 |
|
| 40 |
/** |
| 41 |
* put your comment there... |
| 42 |
* |
| 43 |
* @var mixed |
| 44 |
*/ |
| 45 |
protected $helpText; |
| 46 |
|
| 47 |
/** |
| 48 |
* put your comment there... |
| 49 |
* |
| 50 |
* @var mixed |
| 51 |
*/ |
| 52 |
protected $renderer; |
| 53 |
|
| 54 |
/** |
| 55 |
* put your comment there... |
| 56 |
* |
| 57 |
* @var mixed |
| 58 |
*/ |
| 59 |
protected $values; |
| 60 |
|
| 61 |
/** |
| 62 |
* put your comment there... |
| 63 |
* |
| 64 |
* @param mixed $name |
| 65 |
* @param mixed $type |
| 66 |
* @param mixed $required |
| 67 |
* @param mixed $defaultValue |
| 68 |
* @param mixed $parent |
| 69 |
* @param mixed $id |
| 70 |
* @return CJT_Models_Block_Parameters_Parameter |
| 71 |
*/ |
| 72 |
public function __construct($parameter) { |
| 73 |
// Initialize parent model. |
| 74 |
parent::__construct($parameter); |
| 75 |
// Initialize. |
| 76 |
$this->groupName = isset($parameter['groupName']) ? $parameter['groupName'] : null; |
| 77 |
$this->groupId = isset($parameter['groupId']) ? $parameter['groupId'] : null; |
| 78 |
$this->groupDescription = isset($parameter['groupDescription']) ? $parameter['groupDescription'] : null; |
| 79 |
$this->renderer = isset($parameter['renderer']) ? $parameter['renderer'] : null; |
| 80 |
$this->description = isset($parameter['description']) ? $parameter['description'] : null; |
| 81 |
$this->helpText = isset($parameter['helpText']) ? $parameter['helpText'] : null; |
| 82 |
} |
| 83 |
|
| 84 |
/** |
| 85 |
* put your comment there... |
| 86 |
* |
| 87 |
* @param mixed $value |
| 88 |
*/ |
| 89 |
public function addValue($value) { |
| 90 |
// Add value model to the values list. |
| 91 |
$this->values[] = $value; |
| 92 |
// Chaining. |
| 93 |
return $this; |
| 94 |
} |
| 95 |
|
| 96 |
/** |
| 97 |
* put your comment there... |
| 98 |
* |
| 99 |
*/ |
| 100 |
public function getDescription() { |
| 101 |
return $this->description; |
| 102 |
} |
| 103 |
|
| 104 |
/** |
| 105 |
* put your comment there... |
| 106 |
* |
| 107 |
*/ |
| 108 |
public function getGroupDescription() { |
| 109 |
return $this->groupDescription; |
| 110 |
} |
| 111 |
|
| 112 |
/** |
| 113 |
* put your comment there... |
| 114 |
* |
| 115 |
*/ |
| 116 |
public function getGroupId() { |
| 117 |
return $this->groupId; |
| 118 |
} |
| 119 |
|
| 120 |
/** |
| 121 |
* put your comment there... |
| 122 |
* |
| 123 |
*/ |
| 124 |
public function getGroupName() { |
| 125 |
return $this->groupName; |
| 126 |
} |
| 127 |
|
| 128 |
/** |
| 129 |
* put your comment there... |
| 130 |
* |
| 131 |
*/ |
| 132 |
public function getHelpText() { |
| 133 |
return $this->helpText; |
| 134 |
} |
| 135 |
|
| 136 |
/** |
| 137 |
* put your comment there... |
| 138 |
* |
| 139 |
*/ |
| 140 |
public function getOriginalType() { |
| 141 |
return parent::getType(); |
| 142 |
} |
| 143 |
|
| 144 |
/** |
| 145 |
* put your comment there... |
| 146 |
* |
| 147 |
*/ |
| 148 |
public function getRenderer() { |
| 149 |
return $this->renderer; |
| 150 |
} |
| 151 |
|
| 152 |
/** |
| 153 |
* put your comment there... |
| 154 |
* |
| 155 |
*/ |
| 156 |
public function getType() { |
| 157 |
return $this->getRenderer(); |
| 158 |
} |
| 159 |
|
| 160 |
/** |
| 161 |
* put your comment there... |
| 162 |
* |
| 163 |
*/ |
| 164 |
public function getValues() { |
| 165 |
return $this->values; |
| 166 |
} |
| 167 |
|
| 168 |
} // End class. |
| 169 |
|