__construct() публичный Метод

Create a new \PhpOffice\PhpPresentation\Slide\AbstractDrawing
public __construct ( )
Пример #1
0
 /**
  * Create a new \PhpOffice\PhpPresentation\Shape\Table instance
  *
  * @param int $columns Number of columns
  */
 public function __construct($columns = 1)
 {
     // Initialise variables
     $this->rows = array();
     $this->columnCount = $columns;
     // Initialize parent
     parent::__construct();
     // No resize proportional
     $this->resizeProportional = false;
 }
Пример #2
0
 /**
  * Create a new Chart
  */
 public function __construct()
 {
     // Initialize
     $this->title = new Title();
     $this->legend = new Legend();
     $this->plotArea = new PlotArea();
     $this->view3D = new View3D();
     // Initialize parent
     parent::__construct();
 }