예제 #1
0
파일: print.php 프로젝트: ratiw/petro-test
 protected function create_doc()
 {
     $pdf = MyDoc::forge('mpdf')->init('th', 'A4', '', 'garuda', -5, 0, 10, 0, 0, 0, 'P');
     $pdf->set_display_mode('fullpage');
     $pdf->list_indent_first_level = 0;
     return $pdf;
 }
예제 #2
0
<?php

class MyDoc extends DOMDocument
{
    function __construct($version, $encoding)
    {
    }
}
$doc = new MyDoc(1, "");
$doc->normalizeDocument();
// warning
class MyOtherDoc extends DOMDocument
{
    function __construct($version, $encoding)
    {
        parent::__construct($version, $encoding);
    }
}
$doc = new MyOtherDoc(1, "");
$doc->normalizeDocument();
echo "ok\n";