Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4edf06e5

Von Sven Schöling vor fast 14 Jahren hinzugefügt

  • ID 4edf06e528002d18ac8cb5bf94ecf429ec705cb8
  • Vorgänger 12e51300
  • Nachfolger 1fce9d15

Dokumentation von header.

Unterschiede anzeigen:

SL/Form.pm
3518 3518

  
3519 3519
=head1 SPECIAL FUNCTIONS
3520 3520

  
3521
=over 4
3522

  
3523
=item _store_value()
3521
=head2 C<_store_value()>
3524 3522

  
3525 3523
parses a complex var name, and stores it in the form.
3526 3524

  
......
3575 3573

  
3576 3574
  filter.status[]  => $form->{status}->[ val1, val2, ... ]
3577 3575

  
3578
=item update_business PARAMS
3576
=head2 C<update_business> PARAMS
3579 3577

  
3580 3578
PARAMS (not named):
3581 3579
 \%config,     - config hashref
......
3587 3585
special behaviour for empty strings in customerinitnumber field:
3588 3586
will in this case not increase the value, and return undef.
3589 3587

  
3590
=item redirect_header $url
3588
=head2 C<redirect_header> $url
3591 3589

  
3592 3590
Generates a HTTP redirection header for the new C<$url>. Constructs an
3593 3591
absolute URL including scheme, host name and port. If C<$url> is a
......
3601 3599
  print $::form->redirect_header('oe.pl?action=edit&id=1234');
3602 3600
  print $::form->redirect_header('http://www.lx-office.org/');
3603 3601

  
3602
=head2 C<header>
3603

  
3604
Generates a general purpose http/html header and includes most of the scripts
3605
ans stylesheets needed.
3606

  
3607
Only one header will be generated. If the method was already called in this
3608
request it will not output anything and return undef. Also if no
3609
HTTP_USER_AGENT is found, no header is generated.
3610

  
3611
Although header does not accept parameters itself, it will honor special
3612
hashkeys of its Form instance:
3613

  
3614
=over 4
3615

  
3616
=item refresh_time
3617

  
3618
=item refresh_url
3619

  
3620
If one of these is set, a http-equiv refresh is generated. Missing parameters
3621
default to 3 seconds and the refering url.
3622

  
3623
=item stylesheet
3624

  
3625
=item stylesheets
3626

  
3627
If these are arrayrefs the contents will be inlined into the header.
3628

  
3629
=item landscape
3630

  
3631
If true, a css snippet will be generated that sets the page in landscape mode.
3632

  
3633
=item favicon
3634

  
3635
Used to override the default favicon.
3636

  
3637
=item title
3638

  
3639
A html page title will be generated from this
3640

  
3604 3641
=back
3605 3642

  
3606 3643
=cut

Auch abrufbar als: Unified diff