자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
/** * Checks if a name already exists in the list of subfolders to a folder * * @param string $name A folder name * @return bool */ public function hasSubFolder($name) { $c = new Criteria(); $c->add(sfAssetFolderPeer::NAME, $name); $c->add(sfAssetFolderPeer::TREE_PARENT, $this->getId()); return sfAssetFolderPeer::doCount($c) > 0 ? true : false; }