new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::REQUIRED, 'int' ), ); $form = new ezcInputForm( INPUT_GET, $definition ); if ( $form->hasValidData( 'person' ) === false ) { throw new Exception( "No person ID given." ); } $this->id = $form->person; } public function run() { $session = ezcPersistentSessionInstance::get(); $this->person = $session->load( "ezcappContactPerson", $this->id ); $session->delete( $this->person ); } public function getTemplate() { return "delete"; } } ?>