__construct() public method

Create a new self
public __construct ( )
Esempio n. 1
0
 /**
  * Create a new \PhpOffice\PhpPresentation\Shape\Line instance
  *
  * @param int $fromX
  * @param int $fromY
  * @param int $toX
  * @param int $toY
  */
 public function __construct($fromX, $fromY, $toX, $toY)
 {
     parent::__construct();
     $this->getBorder()->setLineStyle(Border::LINE_SINGLE);
     $this->setOffsetX($fromX);
     $this->setOffsetY($fromY);
     $this->setWidth($toX - $fromX);
     $this->setHeight($toY - $fromY);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     // For logic purposes.
     $this->offsetX = null;
     $this->offsetY = null;
     // Shape collection
     $this->shapeCollection = new \ArrayObject();
 }
 /**
  * Create a new \PhpOffice\PhpPresentation\Slide\AbstractDrawing
  */
 public function __construct()
 {
     // Initialise values
     $this->name = '';
     $this->description = '';
     $this->resizeProportional = true;
     // Set image index
     self::$imageCounter++;
     $this->imageIndex = self::$imageCounter;
     // Initialize parent
     parent::__construct();
 }
Esempio n. 4
0
 /**
  * Create a new \PhpOffice\PhpPresentation\Shape\RichText instance
  */
 public function __construct()
 {
     // Initialise variables
     $this->richTextParagraphs = array(new Paragraph());
     $this->activeParagraph = 0;
     // Initialize parent
     parent::__construct();
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
     $this->setDate(time());
 }