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 PPrCompositeNode
 7: * 
 8: *  @version 1.0.0
 9: *  @author v.raskin
10:  * @package vsword.node
11: */
12: class PPrCompositeNode extends EmptyCompositeNode implements IPNodeStyleAdded {
13: 
14:     
15:     /**
16:      * 
17:      * @param IPNodeStyle $node
18:      */
19:     public function addPNodeStyle(IPNodeStyle $node) {
20:         $this->addNode($node);
21:     }
22:     
23:     protected function beforeRenderChildrensWord() {    
24:         if(!is_null($this->styleId)) {
25:             $this->addNode( new ArbitraryNode('w:pStyle', array(
26:                 'w:val'=>$this->styleId,
27:             )) );   
28:         }
29:         return '<w:pPr>';
30:     }
31:     
32:     protected function afterRenderChildrensWord() {
33:         return '</w:pPr>';
34:     }
35: }
36: 
wordx API documentation generated by ApiGen 2.8.0