PHP 클래스 MYPDF

상속: extends TCPDF
파일 보기 프로젝트 열기: kimai/kimai 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$columns
$moneySum
$print_time
$timeSum
$w Widths of all columns

공개 메소드들

메소드 설명
ColoredTable ( array $header, array $data ) Print the table containing the detailed information.
Footer ( ) Print a footer on every page.
columnWidths ( integer $max_time_width, $max_money_width ) : array Create the array which hold the column widths. They depends on the maximum with the time column and the money column need.
getHtmlStringLines ( string $string, integer $line_width ) : integer Split the string in lines and check if a line would overflow and cause more lines.
printExpenseRow ( array $w, array $row ) Put a new expense entry into the PDF document.
printRows ( array $data, array $widths ) Put a new entry into the PDF document. Decide if it's a time entry or expense entry and call the appropriate functions.
printTimeRow ( array $w, array $row ) Put a new time entry into the PDF document.

메소드 상세

ColoredTable() 공개 메소드

Print the table containing the detailed information.
public ColoredTable ( array $header, array $data )
$header array String with the column headers.
$data array Data to print.

columnWidths() 공개 메소드

Create the array which hold the column widths. They depends on the maximum with the time column and the money column need.
public columnWidths ( integer $max_time_width, $max_money_width ) : array
$max_time_width integer maximum width the time column needs.
리턴 array containing the widths of the columns

getHtmlStringLines() 공개 메소드

Split the string in lines and check if a line would overflow and cause more lines.
public getHtmlStringLines ( string $string, integer $line_width ) : integer
$string string Text to check.
$line_width integer
리턴 integer Number of lines the text will need.

printExpenseRow() 공개 메소드

Put a new expense entry into the PDF document.
public printExpenseRow ( array $w, array $row )
$w array the widths of the columns
$row array the data of this entry

printRows() 공개 메소드

Put a new entry into the PDF document. Decide if it's a time entry or expense entry and call the appropriate functions.
public printRows ( array $data, array $widths )
$data array the data of this entry
$widths array the widths of the columns

printTimeRow() 공개 메소드

Put a new time entry into the PDF document.
public printTimeRow ( array $w, array $row )
$w array the widths of the columns
$row array the data of this entry

프로퍼티 상세

$columns 공개적으로 프로퍼티

public $columns

$moneySum 공개적으로 프로퍼티

public $moneySum

$print_time 공개적으로 프로퍼티

public $print_time

$timeSum 공개적으로 프로퍼티

public $timeSum

$w 공개적으로 프로퍼티

Widths of all columns
public $w