Aspose.Barcode for PHP via Java Generation and Recognition API docs

Inherits MaxiCodeCodetext.

Public Member Functions

 __construct ()
 
 getMessage ()
 
 setMessage (string $value)
 
 setMode (int $mode)
 
 getMode ()
 
 getConstructedCodetext ()
 
 initFromString (string $constructedCodetext)
 
 equals ($obj)
 
 getHashCode ()
 
- Public Member Functions inherited from MaxiCodeCodetext
 getMaxiCodeEncodeMode ()
 
 setMaxiCodeEncodeMode (int $value)
 
 getECIEncoding ()
 
 setECIEncoding (int $value)
 
 getBarcodeType ()
 
- Public Member Functions inherited from IComplexCodetext
 __construct ($javaClass)
 
- Public Member Functions inherited from BaseJavaClass
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Static Public Member Functions

static construct ($javaClass)
 

Public Attributes

const JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStandardCodetext"
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from BaseJavaClass
 setJavaClass ($javaClass)
 

Detailed Description

Class for encoding and decoding MaxiCode codetext for modes 4, 5 and 6.

//Mode 4
$maxiCodeCodetext = new MaxiCodeStandardCodetext();
$maxiCodeCodetext->setMode(MaxiCodeMode.MODE_4);
$maxiCodeCodetext->setMessage("Test message");
$complexGenerator = new ComplexBarcodeGenerator($maxiCodeCodetext->getConstructedCodetext());
$complexGenerator->generateBarCodeImage(BarcodeImageFormat::PNG);
//Mode 5
$maxiCodeCodetext = new MaxiCodeStandardCodetext();
$maxiCodeCodetext->setMode(MaxiCodeMode.MODE_5);
$maxiCodeCodetext->setMessage("Test message");
ComplexBarcodeGenerator complexGenerator = new ComplexBarcodeGenerator($maxiCodeCodetext->getConstructedCodetext());
$complexGenerator->generateBarCodeImage(BarcodeImageFormat::PNG);
//Mode 6
$maxiCodeCodetext = new MaxiCodeStandardCodetext();
$maxiCodeCodetext->setMode(MaxiCodeMode.MODE_6);
$maxiCodeCodetext->setMessage("Test message");
$complexGenerator = new ComplexBarcodeGenerator($maxiCodeCodetext->getConstructedCodetext());
$complexGenerator->generateBarCodeImage(BarcodeImageFormat::PNG);

Constructor & Destructor Documentation

◆ __construct()

MaxiCodeStandardCodetext::__construct ( )

Member Function Documentation

◆ construct()

static MaxiCodeStandardCodetext::construct (   $javaClass)
static

◆ equals()

MaxiCodeStandardCodetext::equals (   $obj)

Returns a value indicating whether this instance is equal to a specified MaxiCodeStandardCodetext value.

Parameters
objectobj An MaxiCodeStandardCodetext value to compare to this instance.
Returns
bool if obj has the same value as this instance; otherwise, false.

◆ getConstructedCodetext()

MaxiCodeStandardCodetext::getConstructedCodetext ( )

Constructs codetext

Returns
string Constructed codetext

Reimplemented from IComplexCodetext.

◆ getHashCode()

MaxiCodeStandardCodetext::getHashCode ( )

Returns the hash code for this instance.

Returns
int A 32-bit signed integer hash code

◆ getMessage()

MaxiCodeStandardCodetext::getMessage ( )

Gets message.

◆ getMode()

MaxiCodeStandardCodetext::getMode ( )

Gets MaxiCode mode.

Returns
int MaxiCode mode

Reimplemented from MaxiCodeCodetext.

◆ init()

MaxiCodeStandardCodetext::init ( )
protected

Reimplemented from BaseJavaClass.

◆ initFromString()

MaxiCodeStandardCodetext::initFromString ( string  $constructedCodetext)

Initializes instance from constructed codetext.

Parameters
stringconstructedCodetext Constructed codetext.

Reimplemented from IComplexCodetext.

◆ setMessage()

MaxiCodeStandardCodetext::setMessage ( string  $value)

Sets message.

◆ setMode()

MaxiCodeStandardCodetext::setMode ( int  $mode)

Sets MaxiCode mode. Standart codetext can be used only with modes 4, 5 and 6.

Member Data Documentation

◆ JAVA_CLASS_NAME

const MaxiCodeStandardCodetext::JAVA_CLASS_NAME = "com.aspose.mw.barcode.complexbarcode.MwMaxiCodeStandardCodetext"