コード例 #1
0
ファイル: Item.php プロジェクト: bit3/php-flexi-tree
 /**
  * Clear structure related internal caches like trail and level status.
  *
  * @internal
  */
 public function invalidateTrailStatusCache($deep = true)
 {
     $this->cachedTrailStatus = null;
     if ($deep && $this->children instanceof ItemCollection) {
         $this->children->invalidateTrailStatusCache();
     }
 }
コード例 #2
0
ファイル: MenuItem.php プロジェクト: superdesk/web-publisher
 /**
  * {@inheritdoc}
  */
 public function getLastChild()
 {
     return $this->children->last();
 }