Пример #1
0
 /**
  * (PHP 5 &gt;= 5.0.0)<br/>
  * Offset to unset
  * @link http://php.net/manual/en/arrayaccess.offsetunset.php
  * @param mixed $offset <p>
  * The offset to unset.
  * </p>
  * @return void
  */
 public function offsetUnset($offset)
 {
     if ($this->flag < 2) {
         unset($this->warps[$offset]);
     }
     if ($this->flag >= 1) {
         $this->store->remove($offset);
         $this->saveStore();
     }
 }
Пример #2
0
 protected function save()
 {
     if ($this->store instanceof Saveable) {
         $this->store->save();
     }
 }