Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • Captcha
  • CMSUsers
  • DataTables
  • Export
  • FlashMessage
  • Ownership
  • PDF

Class PDF

Generates PDF document from a set of data.

TCPDF
Extended by CMS\Helpers\PDF
Namespace: CMS\Helpers
Located at helpers/pdf.php

Methods summary

public
# __construct( string $title, string $font = 'helvetica', boolean $logo = false )

Init method.

Init method.

Parameters

$title
Title.
$font
Font name.
$logo
Logo.
public
# header( )

Manages the header part of the document.

Manages the header part of the document.

public
# footer( )

Manages the footer part of document.

Manages the footer part of document.

public array
# loadData( string $file )

Loads data.

Loads data.

Parameters

$file
Absolute file path.

Returns

array
public
# embedContentTable( array $header, array $data )

Sets main content for the document represented in a table view.

Sets main content for the document represented in a table view.

Parameters

$header
Table header.
$data
Table contents.
private
# generateTableCaption( array $header )

Formats the table caption part.

Formats the table caption part.

Parameters

$header
Header data.

Properties summary

protected string $title

Title of the document.

Title of the document.

#
private string $font

Name of the font used in the document.

Name of the font used in the document.

#
private boolean $logo

Path to the image logo that will be embedded in the document.

Path to the image logo that will be embedded in the document.

#
private integer $tableCellWidth

Main table cell width in pixels.

Main table cell width in pixels.

#
Silla.IO API API documentation generated by ApiGen