/** * Create a new PHPPowerPoint_Shape_RichText instance */ public function __construct() { // Initialise variables $this->_richTextElements = array(); $this->_alignment = new PHPPowerPoint_Style_Alignment(); // Initialize parent parent::__construct(); }
/** * Create a new PHPPowerPoint_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(PHPPowerPoint_Style_Border::LINE_SINGLE); $this->setOffsetX($fromX); $this->setOffsetY($fromY); $this->setWidth($toX - $fromX); $this->setHeight($toY - $fromY); }
/** * Create a new PHPPowerPoint_Slide_BaseDrawing */ 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(); }
/** * Create a new PHPPowerPoint_Shape_RichText instance */ public function __construct() { // Initialise variables $this->_richTextParagraphs = array(new PHPPowerPoint_Shape_RichText_Paragraph()); $this->_activeParagraph = 0; // Initialize parent parent::__construct(); }