コード例 #1
0
ファイル: Folder.php プロジェクト: TYPO3Incubator/TYPO3.CMS
 /**
  * Returns the object for a subfolder of the current folder, if it exists.
  *
  * @param string $name Name of the subfolder
  * @return Folder
  * @throws \InvalidArgumentException
  */
 public function getSubfolder($name)
 {
     if (!$this->storage->hasFolderInFolder($name, $this)) {
         throw new \InvalidArgumentException('Folder "' . $name . '" does not exist in "' . $this->identifier . '"', 1329836110);
     }
     return $this->storage->getFolderInFolder($name, $this);
 }