4 * @author Marius Orcsik <marius@habarnam.ro>
7 abstract class fooFieldA
implements fooFieldI
{
11 protected $modifier = null;
12 protected $order = null;
13 protected $group = null;
14 protected $where = false;
16 protected $nullable = true;
20 * @param mixed $oField
23 static public function isValid ($oField) {
24 return ($oField instanceof self
);
27 public function __construct ($incName) {
28 $this->name
= $incName;
31 public function __destruct () {}
33 public function __toString () {
34 return (string)$this->value
;
38 * @param bool $bIsNull
41 public function setIsNullable ($bIsNull) {
42 $this->nullable
= (bool)$bIsNull;
48 public function getIsNullable () {
49 return $this->nullable
;
52 public function setName($sName) {
56 public function getName () {
60 public function setModifier ($sModifier) {
61 $this->modifier
= $sModifier;
64 public function setMaxLength($fLen) {
65 $this->maxLength
= $fLen;
68 public function getMaxLength() {
69 return $this->maxLength
;
72 public function setValue ($value) {
73 $this->value
= $value;
76 public function setGroup ($true = true) {
77 $this->group
= (bool)$true;
80 public function setOrder ($asc = true) {
81 $this->order
= (bool)$asc;
84 abstract protected function escape ();