| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* |
| 8 |
*/ |
| 9 |
abstract class CJTHTMLField { |
| 10 |
|
| 11 |
/** |
| 12 |
* put your comment there... |
| 13 |
* |
| 14 |
* @var mixed |
| 15 |
*/ |
| 16 |
protected $classesList; |
| 17 |
|
| 18 |
/** |
| 19 |
* put your comment there... |
| 20 |
* |
| 21 |
* @var mixed |
| 22 |
*/ |
| 23 |
protected $form; |
| 24 |
|
| 25 |
/** |
| 26 |
* put your comment there... |
| 27 |
* |
| 28 |
* @var mixed |
| 29 |
*/ |
| 30 |
protected $id; |
| 31 |
|
| 32 |
/** |
| 33 |
* put your comment there... |
| 34 |
* |
| 35 |
* @var mixed |
| 36 |
*/ |
| 37 |
protected $name; |
| 38 |
|
| 39 |
/** |
| 40 |
* put your comment there... |
| 41 |
* |
| 42 |
* @var mixed |
| 43 |
*/ |
| 44 |
protected $value; |
| 45 |
|
| 46 |
/** |
| 47 |
* put your comment there... |
| 48 |
* |
| 49 |
* @param mixed $form |
| 50 |
* @param mixed $name |
| 51 |
* @param mixed $value |
| 52 |
* @param mixed $id |
| 53 |
* @param mixed $classesList |
| 54 |
* @return CJTHTMLField |
| 55 |
*/ |
| 56 |
public function __construct($form, $name, $value, $id = null, $classesList = '') { |
| 57 |
// Initialize object. |
| 58 |
$this->form = $form; |
| 59 |
$this->name = $name; |
| 60 |
$this->value = $value; |
| 61 |
$this->id = $id ? $id : $this->name; |
| 62 |
$this->classesList = $classesList; |
| 63 |
} |
| 64 |
|
| 65 |
/** |
| 66 |
* put your comment there... |
| 67 |
* |
| 68 |
*/ |
| 69 |
public function getForm() { |
| 70 |
return $this->form; |
| 71 |
} |
| 72 |
|
| 73 |
/** |
| 74 |
* put your comment there... |
| 75 |
* |
| 76 |
*/ |
| 77 |
public function getId() { |
| 78 |
return $this->id; |
| 79 |
} |
| 80 |
|
| 81 |
/** |
| 82 |
* put your comment there... |
| 83 |
* |
| 84 |
*/ |
| 85 |
public function getName() { |
| 86 |
return $this->name; |
| 87 |
} |
| 88 |
|
| 89 |
/** |
| 90 |
* put your comment there... |
| 91 |
* |
| 92 |
*/ |
| 93 |
public function getValue() { |
| 94 |
return $this->value; |
| 95 |
} |
| 96 |
|
| 97 |
} // End class. |
| 98 |
|