19 require_once(BASE.
"wcmf/lib/util/class.Message.php");
20 require_once(BASE.
"wcmf/lib/persistence/class.PersistentObject.php");
21 require_once(BASE.
"wcmf/lib/persistence/class.PersistenceFacade.php");
42 function Table($type, $oid=null)
48 $id = md5(uniqid(ip2long($_SERVER[
'REMOTE_ADDR']) ^ (
int)$_SERVER[
'REMOTE_PORT'] ^ @getmypid() ^ @disk_free_space(
'/tmp'), 1));
65 $this->_data[$column] = array_slice($this->_data[$column], 0);
93 for ($i=0; $i<
sizeof($columns); $i++)
94 $row[$columns[$i]] = $this->
getValue($index, $columns[$i]);
106 for ($i=0; $i<$numRows; $i++)
107 $column[$i] = $this->
getValue($i, $name);
122 if ($index !== null && $index <= $numRows)
124 $firstRows = array_slice($this->_data[$column], 0, $index);
125 $lastRows = array_slice($this->_data[$column], $index);
126 array_push($firstRows, array(
'value' => $values[$column]));
127 $this->_data[$column] = array_merge($firstRows, $lastRows);
130 array_push($this->_data[$column], array(
'value' => $values[$column]));
142 array_splice($this->_data[$column], $index, 1);
152 if ($type != null && is_array($this->_data[$type]))
153 return $this->_valueProperties[$type];
166 $this->_valueProperties[$type] = $properties;
setValueProperties($name, $properties, $type=null)
getValue($name, $type=null)
getValueNames($type=null)
insertRow($index=null, $values=array())
setState($state, $recursive=true)
getValueProperties($name, $type=null)
Table is a PersistentObject that holds a table structure. The rows of the table correspond to the val...
PersistentObject is the base class of all persistent objects. It implements the basic persistence met...