getItem() protected method

protected getItem ( $name )
Esempio n. 1
0
 /**
  * @inheritdoc
  */
 protected function getItem($name)
 {
     $cacheKey = 'Item:' . $name;
     $cached = $this->getCache($cacheKey);
     if (empty($cached)) {
         $cached = parent::getItem($name);
         $this->setCache($cacheKey, $cached);
     }
     return $cached;
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  * 废弃
  */
 public function getItem($name)
 {
     return parent::getItem($name);
 }