original_string: public function message($message, $success = 0, $return = false)
      {
          $array = array(
              'success' => $success,
              'message' => $message
          );
  
          $url = $this->saveURL . $this->saveName;
  
          // Cross-domain redirect to callback url
          if ($this->redirect)
          {
              $this->redirectURL .= '&success=' . $success . '&message=' . $message;
  
              if ($success == 1)
              {
                  $this->redirectURL .= '&url=' . $url;
              }
  
              $this->redirect();
          }
          else
          {
              echo "success =>" . $success;
              if ($success == 1)
              {
                  $array['url'] = $url;
              }
  
              $this->message = $array = json_encode($array);
  
              if ($return)
              {
                  return $array;
              }
              else
              {
                  echo $array;
              }
          }
      }
code: public function message($message, $success = 0, $return = false)
      {
          $array = array(
              'success' => $success,
              'message' => $message
          );
  
          $url = $this->saveURL . $this->saveName;
  
          // Cross-domain redirect to callback url
          if ($this->redirect)
          {
              $this->redirectURL .= '&success=' . $success . '&message=' . $message;
  
              if ($success == 1)
              {
                  $this->redirectURL .= '&url=' . $url;
              }
  
              $this->redirect();
          }
          else
          {
              echo "success =>" . $success;
              if ($success == 1)
              {
                  $array['url'] = $url;
              }
  
              $this->message = $array = json_encode($array);
  
              if ($return)
              {
                  return $array;
              }
              else
              {
                  echo $array;
              }
          }
      }
code_tokens: public function message ( $ message , $ success = 0 , $ return = false ) { $ array = array ( 'success' => $ success , 'message' => $ message ) ; $ url = $ this -> saveURL . $ this -> saveName ; // Cross-domain redirect to callback url
   if ( $ this -> redirect ) { $ this -> redirectURL .= '&success=' . $ success . '&message=' . $ message ; if ( $ success == 1 ) { $ this -> redirectURL .= '&url=' . $ url ; } $ this -> redirect ( ) ; } else { echo "success =>" . $ success ; if ( $ success == 1 ) { $ array [ 'url' ] = $ url ; } $ this -> message = $ array = json_encode ( $ array ) ; if ( $ return ) { return $ array ; } else { echo $ array ; } } }
docstring: Errors message handle
  
  @access public
  @param string $message
  @param int $success
  @param bool $return false
  @return array|string
docstring_tokens: Errors message handle