public function getLabelData($raw = FALSE){
        if (isset($this->data['Label'])){
            if ($raw) {
                return $this->data['Label'];
            }
            //decode label file automatically
            $r = $this->data['Label'];
            $convert = $this->getLabelFileContents(FALSE);
            if ($convert) {
                $r['FileContents']['Contents'] = $convert;
            }
            return $r;
        } else {
            return false;
        }
    }
public function getLabelData($raw = FALSE){
        if (isset($this->data['Label'])){
            if ($raw) {
                return $this->data['Label'];
            }
            //decode label file automatically
            $r = $this->data['Label'];
            $convert = $this->getLabelFileContents(FALSE);
            if ($convert) {
                $r['FileContents']['Contents'] = $convert;
            }
            return $r;
        } else {
            return false;
        }
    }
public function getLabelData ( $ raw = FALSE ) { if ( isset ( $ this -> data [ 'Label' ] ) ) { if ( $ raw ) { return $ this -> data [ 'Label' ] ; } //decode label file automatically $ r = $ this -> data [ 'Label' ] ; $ convert = $ this -> getLabelFileContents ( FALSE ) ; if ( $ convert ) { $ r [ 'FileContents' ] [ 'Contents' ] = $ convert ; } return $ r ; } else { return false ; } }
Returns an array containing all of the Label information.

This method will return <b>FALSE</b> if the label has not been set yet.
The returned array will have the following fields:
<ul>
<li><b>Dimensions</b>:
<ul>
<li><b>Length</b></li>
<li><b>Width</b></li>
<li><b>Unit</b></li>
</ul>
</li>
<li><b>FileContents</b>:
<ul>
<li><b>Contents</b></li>
<li><b>FileType</b></li>
<li><b>Checksum</b></li>
</ul>
</li>
<li><b>CustomTextForLabel</b></li>
<li><b>LabelFormat</b></li>
<li><b>StandardIdForLabel</b></li>
</ul>
@param boolean $raw [optional] <p>Set to TRUE to get the raw, double-encoded file contents.</p>
@return array|boolean multi-dimensional array, or <b>FALSE</b> if label not set yet
Returns an array containing all of the Label information .