PHP 클래스 BasePDF

상속: extends TCPDF
파일 보기 프로젝트 열기: kimai/kimai

공개 프로퍼티들

프로퍼티 타입 설명
$date_format
$print_time
$time_format

공개 메소드들

메소드 설명
SumStdTime ( string $time1, string $timesum ) : string Add to standard time.
date ( integer $number ) : string Format a unix timestamp as a date string.
dateformat ( integer $number ) : string Format a Unix timestamp to a date.
money ( integer $number ) : string Format a number as a money value.
printHeader ( array $w, array $header ) Print a header of the summarization table.
printSummary ( array $header, array $data ) Print the table containing the summarized information.
summarize ( $orderedExportData ) Create the summary data array.
time ( integer $number ) : string Format a unix timestamp as a time string.
timeLength ( integer $duration ) : string Calculate time in hh:mm from duration lenght in second rounded to minutes.
time_unit ( string $time ) : string Appen the time unit.
timespan ( integer $number ) : string Format the duration.

메소드 상세

SumStdTime() 공개 메소드

Add to standard time.
public SumStdTime ( string $time1, string $timesum ) : string
$time1 string , time to add to the duration time (usually in standard hours:minutes)
$timesum string , total duration in standard time
리턴 string added timesum+time in standard time

date() 공개 메소드

Format a unix timestamp as a date string.
public date ( integer $number ) : string
$number integer unix timestamp
리턴 string formatted string

dateformat() 공개 메소드

Format a Unix timestamp to a date.
public dateformat ( integer $number ) : string
$number integer unix timestamp
리턴 string formatted as date

money() 공개 메소드

Format a number as a money value.
public money ( integer $number ) : string
$number integer amount of money
리턴 string formatted string

printHeader() 공개 메소드

Print a header of the summarization table.
public printHeader ( array $w, array $header )
$w array widths of the columns
$header array name of the column headers

printSummary() 공개 메소드

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

summarize() 공개 메소드

Create the summary data array.
public summarize ( $orderedExportData )

time() 공개 메소드

Format a unix timestamp as a time string.
public time ( integer $number ) : string
$number integer unix timestamp
리턴 string formatted string

timeLength() 공개 메소드

Calculate time in hh:mm from duration lenght in second rounded to minutes.
public timeLength ( integer $duration ) : string
$duration integer lenght in second
리턴 string time in format hh:mm

time_unit() 공개 메소드

Appen the time unit.
public time_unit ( string $time ) : string
$time string
리턴 string $time + time_unit

timespan() 공개 메소드

Format the duration.
public timespan ( integer $number ) : string
$number integer number to format (usually in hours)
리턴 string formatted string

프로퍼티 상세

$date_format 공개적으로 프로퍼티

public $date_format

$print_time 공개적으로 프로퍼티

public $print_time

$time_format 공개적으로 프로퍼티

public $time_format