示例#1
0
 /**
  * Return the entry with the given name in this directory,
  * if one exists (returns NULL otherwise).
  *
  * @param string $name  file name
  *
  * @return DirectoryEntry  DirectoryEntry object or NULL
  */
 public function getEntry($name)
 {
     return DirectoryEntry::findOneBySQL('parent_id = ? AND name = ?', array($this->file_id, $name));
 }