prepareRowAsPdf() public method

Adds to the TCPDF instance, the data related to a row in the GIS dataset.
public prepareRowAsPdf ( string $spatial, string $label, string $fill_color, array $scale_data, TCPDF $pdf ) : TCPDF
$spatial string GIS POLYGON object
$label string Label for the GIS POLYGON object
$fill_color string Color for the GIS POLYGON object
$scale_data array Array containing data related to scaling
$pdf TCPDF TCPDF instance
return TCPDF the modified TCPDF instance
Example #1
0
 /**
  * test case for prepareRowAsPdf() method
  *
  * @param string $spatial    GIS POLYGON object
  * @param string $label      label for the GIS POLYGON object
  * @param string $fill_color color for the GIS POLYGON object
  * @param array  $scale_data array containing data related to scaling
  * @param object $pdf        TCPDF instance
  *
  * @return void
  * @dataProvider providerForPrepareRowAsPdf
  */
 public function testPrepareRowAsPdf(
     $spatial, $label, $fill_color, $scale_data, $pdf
 ) {
     $return = $this->object->prepareRowAsPdf(
         $spatial, $label, $fill_color, $scale_data, $pdf
     );
     $this->assertInstanceOf('TCPDF', $return);
 }