73 $this->_parent = $parent;
85 if ($pCoord === $this->_currentObjectID) {
89 return isset($this->_cellCache[$pCoord]);
112 if ($pCoord === $this->_currentObjectID) {
113 $this->_currentObject->detach();
114 $this->_currentObjectID = $this->_currentObject = null;
117 if (is_object($this->_cellCache[$pCoord])) {
118 $this->_cellCache[$pCoord]->detach();
119 unset($this->_cellCache[$pCoord]);
130 return array_keys($this->_cellCache);
141 foreach (array_keys($this->_cellCache) as $coord) {
142 list($column,
$row) = sscanf($coord,
'%[A-Z]%d');
143 $sortKeys[sprintf(
'%09d%3s',
$row,$column)] = $coord;
147 return array_values($sortKeys);
152 if (function_exists(
'posix_getpid')) {
153 $baseUnique = posix_getpid();
155 $baseUnique = mt_rand();
157 return uniqid($baseUnique,
true);
166 $this->_parent = $parent;
167 if ((!is_null($this->_currentObject)) && (is_object($this->_currentObject))) {
168 $this->_currentObject->attach($parent);