Subversion Repositories ezqrcode

[/] [tags/] [1.0-alpha2/] [classes/] [qrdatatype.php] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 bd
<?php
2
/**
3
 * Abstract class for datatype handlers
4
 */
5
abstract class eZQRDatatype
6
{
7
    /**
8
     * Mapped content object attribute
9
     * @var eZContentObjectAttribute
10
     */
11
    protected $contentObjectAttribute;
12
 
13
    /**
14
     * Constructor. Requires the mapped content object attribute
15
     * @param eZContentObjectAttribute $contentObjectAttribute
16
     */
17
    public function __construct( eZContentObjectAttribute $contentObjectAttribute )
18
    {
19
        $this->contentObjectAttribute = $contentObjectAttribute;
20
    }
21
 
22
    /**
23
     * Get the mapped data in a QR code compatible format
24
     * @return string The barcode data, or an empty string
25
     */
26
    abstract public function data();
27
}
28
?>