Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 83fac3d1

Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt

  • ID 83fac3d1ba84a900cd1d0c0d48db544831b0dd2b
  • Vorgänger ad4bebf4
  • Nachfolger c235f7be

File: POD-Korrektur: File-Typen sind singular

Unterschiede anzeigen:

SL/File.pm
388 388
                     object_id     => $self->object_id,
389 389
                     object_type   => $self->object_type,
390 390
                     mime_type     => 'application/pdf',
391
                     file_type     => 'documents',
391
                     file_type     => 'document',
392 392
                     file_contents => 'this is no pdf');
393 393

  
394 394
  my $file1  = SL::File->get(id => $id);
......
401 401
  SL::File->rename(id => $id,to => $newname);
402 402
  my $files1 = SL::File->get_all(object_id   => $object_id,
403 403
                                 object_type => $object_type,
404
                                 file_type   => 'images',  # may be optional
404
                                 file_type   => 'image',   # may be optional
405 405
                                 source      => 'uploaded' # may be optional
406 406
                                );
407 407

  
......
418 418

  
419 419
=over 2
420 420

  
421
=item - documents,
421
=item - document,
422 422

  
423 423
which can be generated files (for sales), scanned files or uploaded files (for purchase) for an ERP-object.
424 424
They can exist in different versions. The versioning is handled implicit. All versions of a file may be
425 425
deleted by the user if she/he is allowed to do this.
426 426

  
427
=item - attachments,
427
=item - attachment,
428 428

  
429 429
which have additional information for an ERP-objects. They are uploadable. If a filename still exists
430 430
on a ERP-Object the new uploaded file is a new version of this or it must be renamed by user.
......
433 433
combinide/merged with the document-file in the time of printing.
434 434
Today only PDF-Attachmnets can be merged with the generated document-PDF.
435 435

  
436
=item - images,
436
=item - image,
437 437

  
438 438
they are like attachments, but they may be have thumbnails for displaying.
439 439
So the must have an image format like png,jpg. The versioning is like attachments
......
526 526

  
527 527
=item C<file_type>
528 528

  
529
The type may be "documents", "attachments" or "images" for a new file.
529
The type may be "document", "attachment" or "image" for a new file.
530 530

  
531 531
=item C<source>
532 532

  
......
631 631

  
632 632
=item C<file_type>
633 633

  
634
The type may be "documents", "attachments" or "images". This parameter is optional.
634
The type may be "document", "attachment" or "image". This parameter is optional.
635 635

  
636 636
=item C<file_name>
637 637

  
SL/File/Object.pm
151 151

  
152 152
  my ($object) = SL::File->get_all(object_id   => $object_id,
153 153
                                   object_type => $object_type,
154
                                   file_type   => 'images',  # may be optional
154
                                   file_type   => 'image',   # may be optional
155 155
                                   source      => 'uploaded' # may be optional
156 156
                                  );
157 157
# read attributes

Auch abrufbar als: Unified diff