Ticket #209 (closed task-todo: wontfix-wird nicht behoben)
formhandler um isSubmitted() methode ergänzen
| Reported by: | vain | Owned by: | |
|---|---|---|---|
| Priority: | minor-leicht | Milestone: | Clansuite 0.3 alpha |
| Component: | Core | Version: | 0.2 |
| Keywords: | form | Cc: | |
| Estimated Number of Hours: | 0.0 | Add Hours to Ticket: | 0 |
| Billable?: | no | Total Hours: | 0 |
| Internal?: | no |
Description
Vorschlag von Paul: Eine vereinfachung wäre auch das Prüfen auf Submitted eines Formulares: z.B. Code:
public function IsSubmitted?( $name = 'submit' ) {
if ( array_key_exists( self::getParameter( $name ) ) and
!empty( self::getParameter( $name ) )
) return( true ); return( false );
}
So kann man sich die verschiedenen varianten sparen:
$submit = $this->request->getParameterFromPOST('submit'); if( !empty( $submit ) )
oder:
$submit = isset($_POSTsubmit?) ? $_POSTsubmit? : ; if( !empty( $submit ) )
Change History
Note: See
TracTickets for help on using
tickets.
