コード例 #1
0
ファイル: WarpManager.php プロジェクト: TBNRFrags2468/Economy
 /**
  * (PHP 5 &gt;= 5.0.0)<br/>
  * Offset to retrieve
  * @link http://php.net/manual/en/arrayaccess.offsetget.php
  * @param mixed $offset <p>
  * The offset to retrieve.
  * </p>
  * @return mixed Can return all value types.
  */
 public function offsetGet($offset)
 {
     if ($this->flag >= 2) {
         $this->reloadStore();
         return $this->warpFromData($offset, $this->store->get($offset));
     }
     return isset($this->warps[$offset]) ? $this->warps[$offset] : null;
 }
コード例 #2
0
 public function get($name)
 {
     return $this->store->get($name);
 }