rawname=$name; $this->name=strpos($name,0x00)!==false?substr($name,0,strpos($name,0x00)):$name; $this->type=$type; $this->memAddress=$memAddress; $this->length=$length; $this->decimalCount=$decimalCount; $this->workAreaID=$workAreaID; $this->setFields=$setFields; $this->indexed=$indexed; $this->bytePos=$bytePos; $this->colIndex=$colIndex; } function getDecimalCount() { return $this->decimalCount; } function isIndexed() { return $this->indexed; } function getLength() { return $this->length; } function getDataLength() { switch ($this->type) { case DBFFIELD_TYPE_DATE : return 8; case DBFFIELD_TYPE_DATETIME : return 8; case DBFFIELD_TYPE_LOGICAL : return 1; case DBFFIELD_TYPE_MEMO : return 10; default : return $this->length; } } function getMemAddress() { return $this->memAddress; } function getName() { return $this->name; } function isSetFields() { return $this->setFields; } function getType() { return $this->type; } function getWorkAreaID() { return $this->workAreaID; } function toString() { return $this->name; } function getBytePos() { return $this->bytePos; } function getRawname() { return $this->rawname; } function getColIndex() { return $this->colIndex; } }