__construct() public method

***************************************************************************** * Public methods * * *****************************************************************************
public __construct ( $orientation = 'P', $unit = 'mm', $size = 'A4' )
Ejemplo n.º 1
0
	function __construct()
	{
		parent::__construct();
		$this->column = false;
		$this->row = false;
		$test = preg_match("~^test\\.~i",$_SERVER["HTTP_HOST"]);
		$this->fname = DIR_UPLOADS.($test?"test_":"")."bg_".$_SESSION["c_id"].".jpg";
	}
Ejemplo n.º 2
0
 function __construct($a, $b, $c)
 {
     parent::__construct($a, $b, $c);
     if (isset($_COOKIE["border"]) && $_COOKIE["border"] == 1) {
         $this->border = 1;
     } else {
         $this->border = 0;
     }
     $this->contentWidth = $this->w - $this->lMargin - $this->rMargin;
 }
Ejemplo n.º 3
0
 function __construct($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     @setlocale(LC_NUMERIC, 'C');
     parent::__construct($orientation, $unit, $format);
     //ajout de la police DejaVu
     $this->AddFont('DejaVu', '', 'DejaVuSansCondensed.ttf', true);
     $this->AddFont('DejaVu', 'B', 'DejaVuSansCondensed-Bold.ttf', true);
     $this->AddFont('DejaVu', 'I', 'DejaVuSansCondensed-Oblique.ttf', true);
     $this->AddFont('DejaVu', 'BI', 'DejaVuSansCondensed-BoldOblique.ttf', true);
     $this->setFont('DejaVu');
 }
Ejemplo n.º 4
0
 public function __construct($orientation = "P", $unit = "mm", $format = "A4")
 {
     parent::__construct($orientation, $unit, $format);
     $this->AddFont('Deja Vu Sans', '', 'DejaVuSans.ttf', true);
     $this->AddFont('Deja Vu Sans', 'B', 'DejaVuSans-Bold.ttf', true);
     $this->AddFont('Deja Vu Sans', 'BI', 'DejaVuSans-BoldOblique.ttf', true);
     $this->AddFont('Deja Vu Sans', 'I', 'DejaVuSans-Oblique.ttf', true);
     $this->AddFont('Deja Vu Serif', '', 'DejaVuSerif.ttf', true);
     $this->AddFont('Deja Vu Serif', 'B', 'DejaVuSerif-Bold.ttf', true);
     $this->AddFont('Deja Vu Serif', 'BI', 'DejaVuSerif-BoldItalic.ttf', true);
     $this->AddFont('Deja Vu Serif', 'I', 'DejaVuSerif-Italic.ttf', true);
     $this->AddFont('DejaVu', '', 'DejaVuSansCondensed.ttf', true);
     $this->AddFont('DejaVu', 'BI', 'DejaVuSansCondensed.ttf', true);
     $this->SetFont('DejaVu', '', 14);
 }