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

Inherits IComplexCodetext.

Inherited by MaxiCodeStandardCodetext, and MaxiCodeStructuredCodetext.

Public Member Functions

 getMode ()
 
 getMaxiCodeEncodeMode ()
 
 setMaxiCodeEncodeMode (int $value)
 
 getECIEncoding ()
 
 setECIEncoding (int $value)
 
 getBarcodeType ()
 
- Public Member Functions inherited from IComplexCodetext
 __construct ($javaClass)
 
 getConstructedCodetext ()
 
 initFromString (string $constructedCodetext)
 
- Public Member Functions inherited from BaseJavaClass
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Additional Inherited Members

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

Detailed Description

Base class for encoding and decoding the text embedded in the MaxiCode code.

This sample shows how to decode raw MaxiCode codetext to MaxiCodeCodetext instance.

$reader = new BarCodeReader("c:\\test.png", DecodeType::MAXI_CODE);
foreach($reader->readBarCodes() as $result)
{
$resultMaxiCodeCodetext = ComplexCodetextReader::tryDecodeMaxiCode($result->getExtended()->getMaxiCode()->getMaxiCodeMode(), $result->getCodeText());
print("BarCode Type: ".$resultMaxiCodeCodetext->getBarcodeType());
print("MaxiCode mode: ".$resultMaxiCodeCodetext->getMode());
print("BarCode CodeText: ".$resultMaxiCodeCodetext->getConstructedCodetext());
}

Member Function Documentation

◆ getBarcodeType()

MaxiCodeCodetext::getBarcodeType ( )

Gets barcode type.

Returns
Barcode type

Reimplemented from IComplexCodetext.

◆ getECIEncoding()

MaxiCodeCodetext::getECIEncoding ( )

Gets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.

◆ getMaxiCodeEncodeMode()

MaxiCodeCodetext::getMaxiCodeEncodeMode ( )

Gets a MaxiCode encode mode.

◆ getMode()

MaxiCodeCodetext::getMode ( )
abstract

Gets MaxiCode mode.

Returns
MaxiCode mode

Reimplemented in MaxiCodeStandardCodetext, MaxiCodeCodetextMode3, and MaxiCodeCodetextMode2.

◆ setECIEncoding()

MaxiCodeCodetext::setECIEncoding ( int  $value)

Sets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.

◆ setMaxiCodeEncodeMode()

MaxiCodeCodetext::setMaxiCodeEncodeMode ( int  $value)

Sets a MaxiCode encode mode.