public function addTextBreak() { $textOfSameFormat = new TextOfSameFormat(); $textOfSameFormat->setBreak(); array_push($this->_text, $textOfSameFormat); }
public function addTable($styleTable = array()) { echo 'add a table!!' . '<br />'; $textOfSameFormat = new TextOfSameFormat(); $textOfSameFormat->setTable($styleTable); $this->_tableNow = $textOfSameFormat; array_push($this->_paragrWithDiffStyle, $this->_tableNow); }