Beispiel #1
0
 /**
  * Construct with style name
  */
 public function testConstructWithStyleName()
 {
     $fStyle = 'fStyle';
     $pStyle = 'pStyle';
     $object = new TextBreak($fStyle, $pStyle);
     $this->assertEquals($fStyle, $object->getFontStyle());
     $this->assertEquals($pStyle, $object->getParagraphStyle());
 }
Beispiel #2
0
 /**
  * Add text break element
  *
  * @param int $count
  * @param mixed $fontStyle
  * @param mixed $paragraphStyle
  */
 public function addTextBreak($count = 1, $fontStyle = null, $paragraphStyle = null)
 {
     $this->checkValidity('textbreak');
     for ($i = 1; $i <= $count; $i++) {
         $textBreak = new TextBreak($fontStyle, $paragraphStyle);
         $textBreak->setDocPart($this->getDocPart(), $this->getDocPartId());
         $this->addElement($textBreak);
     }
 }