Lines Matching refs:tpl
92 * @param mixed $tpl The template id
102 public function useTemplate($tpl, $x = 0, $y = 0, $width = null, $height = null, $adjustPageSize = false)
104 if (!isset($this->templates[$tpl])) {
109 unset($x['tpl']);
118 $template = $this->templates[$tpl];
120 $originalSize = $this->getTemplateSize($tpl);
121 $newSize = $this->getTemplateSize($tpl, $width, $height);
147 * @param mixed $tpl The template id
152 public function getTemplateSize($tpl, $width = null, $height = null)
154 if (!isset($this->templates[$tpl])) {
159 $width = $this->templates[$tpl]['width'];
160 $height = $this->templates[$tpl]['height'];
162 $width = $height * $this->templates[$tpl]['width'] / $this->templates[$tpl]['height'];
166 $height = $width * $this->templates[$tpl]['height'] / $this->templates[$tpl]['width'];