Example #1
0
 /**
  * Create a new \PhpOffice\PhpPowerpoint\Slide\Drawing
  */
 public function __construct()
 {
     // Initialise values
     $this->path = '';
     // Initialize parent
     parent::__construct();
 }
 /**
  * Create a new \PhpOffice\PhpPowerpoint\Slide\MemoryDrawing
  */
 public function __construct()
 {
     // Initialise values
     $this->setImageResource(null);
     $this->setRenderingFunction(self::RENDERING_DEFAULT);
     $this->setMimeType(self::MIMETYPE_DEFAULT);
     $this->uniqueName = md5(rand(0, 9999) . time() . rand(0, 9999));
     // Initialize parent
     parent::__construct();
 }
Example #3
0
 /**
  * Create a new \PhpOffice\PhpPowerpoint\Slide\MemoryDrawing
  */
 public function __construct()
 {
     // Initialize
     $this->title = new Title();
     $this->legend = new Legend();
     $this->plotArea = new PlotArea();
     $this->view3D = new View3D();
     // Initialize parent
     parent::__construct();
 }
Example #4
0
 /**
  * Create a new \PhpOffice\PhpPowerpoint\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;
 }