original_string: public function convert() {
          //Verify the record exists before proceeding
          if(empty($this->record) || $this->record===false || !$this->record->exists()) {
              return $this->httpError(404, _t('KapostAdmin.KAPOST_CONTENT_NOT_FOUND', '_Incoming Kapost Content could not be found'));
          }
          
          return $this->customise(array(
                                      'Title'=>_t('KapostAdmin.CONVERT_OBJECT', '_Convert Object'),
                                      'Content'=>null,
                                      'Form'=>$this->ConvertObjectForm(),
                                      'KapostObject'=>$this->record
                                  ))->renderWith('KapostAdmin_ConvertDialog');
      }
code: public function convert() {
          //Verify the record exists before proceeding
          if(empty($this->record) || $this->record===false || !$this->record->exists()) {
              return $this->httpError(404, _t('KapostAdmin.KAPOST_CONTENT_NOT_FOUND', '_Incoming Kapost Content could not be found'));
          }
          
          return $this->customise(array(
                                      'Title'=>_t('KapostAdmin.CONVERT_OBJECT', '_Convert Object'),
                                      'Content'=>null,
                                      'Form'=>$this->ConvertObjectForm(),
                                      'KapostObject'=>$this->record
                                  ))->renderWith('KapostAdmin_ConvertDialog');
      }
code_tokens: public function convert ( ) { //Verify the record exists before proceeding if ( empty ( $ this -> record ) || $ this -> record === false || ! $ this -> record -> exists ( ) ) { return $ this -> httpError ( 404 , _t ( 'KapostAdmin.KAPOST_CONTENT_NOT_FOUND' , '_Incoming Kapost Content could not be found' ) ) ; } return $ this -> customise ( array ( 'Title' => _t ( 'KapostAdmin.CONVERT_OBJECT' , '_Convert Object' ) , 'Content' => null , 'Form' => $ this -> ConvertObjectForm ( ) , 'KapostObject' => $ this -> record ) ) -> renderWith ( 'KapostAdmin_ConvertDialog' ) ; }
docstring: Handles requests for the convert dialog
  @return string HTML to be sent to the browser
docstring_tokens: Handles requests for the convert dialog