EC-CUBE
Public メソッド | 変数
クラス FPDF_TPL
FPDF_TPLに対する継承グラフ
Inheritance graph
[凡例]
FPDF_TPLのコラボレーション図
Collaboration graph
[凡例]

Public メソッド

 beginTemplate ($x=null, $y=null, $w=null, $h=null)
 endTemplate ()
 useTemplate ($tplidx, $_x=null, $_y=null, $_w=0, $_h=0)
 getTemplateSize ($tplidx, $_w=0, $_h=0)
 SetFont ($family, $style= '', $size=0)
 Image ($file, $x=null, $y=null, $w=0, $h=0, $type= '', $link= '')
 AddPage ($orientation= '', $format= '')
 Link ($x, $y, $w, $h, $link)
 AddLink ()
 SetLink ($link, $y=0, $page=-1)
 _putformxobjects ()
 _putimages ()
 _putxobjectdict ()
 _out ($s)

変数

 $tpls = array()
 $tpl = 0
 $_intpl = false
 $tplprefix = "/TPL"
 $_res = array()
 $lastUsedTemplateData = array()

関数

_out ( s)

Private Method

FPDFを再定義しています。

Private Method that writes the form xobjects

FPDIで再定義されています。

Overwritten to add _putformxobjects() after _putimages()

FPDFを再定義しています。

AddPage ( orientation = '',
format = '' 
)

See FPDF-Documentation ;-)

AddPage is not available when you're "in" a template.

FPDFを再定義しています。

beginTemplate ( x = null,
y = null,
w = null,
h = null 
)

Start a Template

This method starts a template. You can give own coordinates to build an own sized Template. Pay attention, that the margins are adapted to the new templatesize. If you want to write outside the template, for example to build a clipped Template, you have to set the Margins and "Cursor"-Position manual after beginTemplate-Call.

If no parameter is given, the template uses the current page-size. The Method returns an ID of the current Template. This ID is used later for using this template. Warning: A created Template is used in PDF at all events. Still if you don't use it after creation!

引数:
int$xThe x-coordinate given in user-unit
int$yThe y-coordinate given in user-unit
int$wThe width given in user-unit
int$hThe height given in user-unit
戻り値:
int The ID of new created Template

End Template

This method ends a template and reset initiated variables on beginTemplate.

戻り値:
mixed If a template is opened, the ID is returned. If not a false is returned.
getTemplateSize ( tplidx,
_w = 0,
_h = 0 
)

Get The calculated Size of a Template

If one size is given, this method calculates the other one.

引数:
int$tplidxA valid template-Id
int$_wThe width of the template
int$_hThe height of the template
戻り値:
array The height and width of the template
Image ( file,
x = null,
y = null,
w = 0,
h = 0,
type = '',
link = '' 
)

See FPDF/TCPDF-Documentation ;-)

FPDFを再定義しています。

Link ( x,
y,
w,
h,
link 
)

Preserve adding Links in Templates ...won't work

FPDFを再定義しています。

SetFont ( family,
style = '',
size = 0 
)

See FPDF/TCPDF-Documentation ;-)

force the resetting of font changes in a template

FPDFを再定義しています。

useTemplate ( tplidx,
_x = null,
_y = null,
_w = 0,
_h = 0 
)

Use a Template in current Page or other Template

You can use a template in a page or in another template. You can give the used template a new size like you use the Image()-method. All parameters are optional. The width or height is calculated automaticaly if one is given. If no parameter is given the origin size as defined in beginTemplate() is used. The calculated or used width and height are returned as an array.

引数:
int$tplidxA valid template-Id
int$_xThe x-position
int$_yThe y-position
int$_wThe new width of the template
int$_hThe new height of the template array The height and width of the template

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数