Exemplo n.º 1
0
 protected function copyToInternal(Folder $targetFolder, $updatedBy, $generateUniqueName = false)
 {
     $newFolder = $targetFolder->addSubFolder(array('NAME' => $this->getName(), 'CREATED_BY' => $updatedBy), array(), $generateUniqueName);
     if (!$newFolder) {
         $this->errorCollection->add($targetFolder->getErrors());
         return null;
     }
     return $newFolder;
 }