コード例 #1
0
 /**
  * Actual logic for removing element by its key.
  *
  * @param mixed $offset
  * @param bool $arrayAccess
  * @return mixed|void
  */
 private function doRemove($offset, $arrayAccess)
 {
     $this->initialize();
     $removed = $arrayAccess ? $this->coll->offsetUnset($offset) : $this->coll->remove($offset);
     if (!$removed && !$arrayAccess) {
         return $removed;
     }
     $this->changed();
     return $removed;
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function offsetUnset($offset)
 {
     $this->initialize();
     $this->collection->offsetUnset($offset);
 }
コード例 #3
0
 public function offsetUnset($offset)
 {
     $this->initialize();
     $this->changed = true;
     return $this->col->offsetUnset($offset);
 }