* some fancy index handling using func_get_args, which allows me to use an undefined...
[vsc.git] / _res / _libs / models / foo / foofielda.class.php
blob8dcad5b712180f249e0f303c8df2ca0a6a4d7b86
1 <?php
2 /**
3 * @package ts_models
4 * @author Marius Orcsik <marius@habarnam.ro>
5 * @date 09.03.29
6 */
7 abstract class fooFieldA implements fooFieldI {
8 protected $name;
9 protected $value;
10 protected $parent;
11 protected $modifier = null;
12 protected $order = null;
13 protected $group = null;
14 protected $where = false;
16 protected $nullable = true;
17 protected $maxLength;
19 /**
20 * @param mixed $oField
21 * @return bool
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;
37 /**
38 * @param bool $bIsNull
39 * @return void
41 public function setIsNullable ($bIsNull) {
42 $this->nullable = (bool)$bIsNull;
45 /**
46 * @return bool
48 public function getIsNullable () {
49 return $this->nullable;
52 public function setName($sName) {
53 $this->name = $sName;
56 public function getName () {
57 return $this->name;
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 ();