Beispiel #1
0
 /**
  * Copy the object to the specified folder.
  * @param FOLDER $folder
  * @param FOLDER_OPERATION_OPTIONS $options
  */
 protected function _copy_to($folder, $options)
 {
     if ($options->update_now && $options->maintain_permissions) {
         if ($this->permissions_id != $folder->permissions_id) {
             $security = $this->security_definition();
             $security->copy_and_store(Security_copy_current);
             $this->permissions_id = $this->id;
         }
     } else {
         $this->permissions_id = $folder->permissions_id;
     }
     parent::_copy_to($folder, $options);
 }