Overview

Packages

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

Classes

  • AttachVsWord
  • MyInitNode
  • VsWord

Interfaces

  • IBlockContext
  • IInitNode
  • ILineContext
  • INode
  • INodeStyle
  • INodeStyleAdded
  • INodeTextAdded
  • IPNodeStyle
  • IPNodeStyleAdded
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: 
 3:  
 4: 
 5: /**
 6:  * Class AttachVsWord
 7:  * 
 8:  * @version 1.0.1
 9:  * @author v.raskin
10:  * @package vsword
11:  */
12: class AttachVsWord {
13: 
14:      
15:     
16:     /**
17:     * rId by WordDirRelsDirDocumentStructureDocFile
18:     * @var string
19:     */
20:     public $rId;
21:     
22:     /**
23:      *
24:      * @var string 
25:      */
26:     public $type;
27:     
28:     /**
29:      *
30:      * @var string 
31:      */
32:     public $target;
33:     
34:     /**
35:      * 
36:      * @param string $key
37:      * @param string $target
38:      * @param string $type
39:      */
40:     public function __construct($key, $target, $type){
41:         $this->rId = $key;
42:         $this->target = $target;
43:         $this->type = $type;
44:     } 
45:     
46:     /**
47:      * 
48:      * @return string
49:      */
50:     public function getBaseName() {
51:         return basename($this->target);
52:     }
53:      
54:     /**
55:     * @return boolean
56:     */ 
57:     public function isRemote() {
58:         return substr($this->target, 0, 4) === 'http';
59:     } 
60: }
wordx API documentation generated by ApiGen 2.8.0