Esempio n. 1
0
 /**
  * Test get/set hash index
  */
 public function testSetGetHashIndex()
 {
     $object = new Note();
     $value = rand(1, 100);
     $this->assertNull($object->getHashIndex());
     $object->setHashIndex($value);
     $this->assertEquals($value, $object->getHashIndex());
 }
Esempio n. 2
0
 /**
  * Write the slide note
  * @param XMLWriter $objWriter
  * @param \PhpOffice\PhpPowerpoint\Slide\Note $note
  */
 public function writeSlideNote(XMLWriter $objWriter, Note $note)
 {
     $shapesNote = $note->getShapeCollection();
     if (count($shapesNote) > 0) {
         $objWriter->startElement('presentation:notes');
         foreach ($shapesNote as $shape) {
             // Increment $this->shapeId
             ++$this->shapeId;
             if ($shape instanceof RichText) {
                 $this->writeShapeTxt($objWriter, $shape);
             }
         }
         $objWriter->endElement();
     }
 }
Esempio n. 3
0
 /**
  *
  * @param \PhpOffice\PhpPowerpoint\Slide\Note $note
  * @return \PhpOffice\PhpPowerpoint\Slide
  */
 public function setNote(Note $note = null)
 {
     $this->slideNote = is_null($note) ? new Note() : $note;
     $this->slideNote->setParent($this);
     return $this;
 }