Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function getContent()
 {
     if (null === $this->content) {
         $filePath = '"' . $this->filePath . '"';
         if ($this->isURI) {
             $filePath = $this->isUriRelative($this->filePath) ? str_replace('%2F', '/', rawurlencode($this->filePath)) : $this->filePath;
         }
         $this->content = $filePath . ' ' . parent::getContent();
     }
     return $this->content;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function getContent()
 {
     if (null === $this->content) {
         $filePath = '';
         if ($this->isURI) {
             if (false === strpos($this->filePath, ':')) {
                 $filePath = str_replace('%2F', '/', rawurlencode($this->filePath));
             } else {
                 $filePath = $this->filePath;
             }
         } else {
             $filePath = '"' . $this->filePath . '"';
         }
         $this->content = $filePath . ' ' . parent::getContent();
     }
     return $this->content;
 }