41 $this->_count =
count($this->cfg->data);
50 return $this->cfg->db;
59 return $this->cfg->table;
68 public function getWhere(array $prm = array()) {
69 return $this->
getDb()->getWhere($prm);
78 if (!$this->fields[$mode])
79 $this->fields[$mode] = array_keys($this->
get(0)->getValues($mode));
80 return $this->fields[$mode];
89 public function get($number) {
90 if (!array_key_exists($number, $this->_rows) && $this->cfg->checkInArray(
'data', $number)) {
94 'data'=>$this->cfg->getInArray(
'data', $number),
97 return isset($this->_rows[$number]) ? $this->_rows[$number] : null;
105 public function add($row) {
106 if ($row instanceof
db_row) {
108 $array = $row->getData();
112 $this->cfg->setInArray(
'data', $this->_count, $array);
122 return $this->cfg->data;
191 return array_key_exists($offset, $this->_rows);
202 return $this->
get($offset);
214 return $this->_rows[$offset] = $value;
224 unset($this->_rows[$offset]);
229 foreach($this as $row)
231 return 'rowSet_'.implode(
'_', $tmp);
getWhere(array $prm=array())
offsetSet($offset, $value)
static get($type, $table, array $prm=array())