Overview

Packages

  • PHP
  • vsword
    • node
    • parser
      • addesed
    • structure
      • style

Classes

  • AlignNode
  • ArbitraryCompositeNode
  • ArbitraryNode
  • BodyCompositeNode
  • BoldStyleNode
  • BrNode
  • CompositeNode
  • DocumentCompositeNode
  • DrawingNode
  • EmptyCompositeNode
  • FontSizeStyleNode
  • HyperlinkCompositeNode
  • ItalicStyleNode
  • ListCompositeNode
  • ListItemCompositeNode
  • Node
  • PageBreakNode
  • PCompositeNode
  • PPrCompositeNode
  • RCompositeNode
  • RPrCompositeNode
  • StringNode
  • TableColCompositeNode
  • TableCompositeNode
  • TableRowCompositeNode
  • TextNode
  • UnderlineStyleNode
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: 
 3: 
 4: 
 5: /**
 6:  * Class StringNode
 7:  * 
 8:  * @version 1.0.2
 9:  * @author v.raskin
10:  * @package vsword.node
11:  */
12: class StringNode extends Node implements INodeTextAdded {
13:     
14:     protected $text;
15:     
16:         
17:     public function __construct($text = '') {
18:         $this->addText($text);  
19:     }
20:     
21:     /**
22:      * 
23:      * @param string $text
24:      */
25:     public function setText($text) {
26:         $this->text = $text;
27:     }
28:     
29:     /**
30:     * @param string
31:     * @return INode
32:     */
33:     public function addText($text) {
34:         $this->setText($this->text.$text); 
35:         return $this;
36:     }
37:     
38:     /**
39:      * 
40:      * @return string
41:      */
42:     public function getText() {
43:         return $this->text;
44:     }
45:     
46:     public function getWord() {
47:         return $this->getText();
48:     }
49:     
50:     public function getHTML() {
51:         return $this->getText();
52:     }
53: }
54: 
wordx API documentation generated by ApiGen 2.8.0