示例#1
0
 /**
  * Create a new \PhpOffice\PhpPresentation\Slide\Drawing
  */
 public function __construct()
 {
     // Initialise values
     $this->path = '';
     // Initialize parent
     parent::__construct();
 }
示例#2
0
 /**
  * Create a new \PhpOffice\PhpPresentation\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();
 }
示例#3
0
 /**
  * Create a new \PhpOffice\PhpPresentation\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();
 }
示例#4
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;
 }