Helper/Bootstrap/Markdown.php
protected function getMetaContent()
    {
        if ($this->mdFile && !file_exists($this->mdFile)) {
            throw new ArchException('Wrong markdown file [' . $this->mdFile . ']');
        }
        if ($this->mdFile && !$this->getContent()) {
            return Container::getMarkdown()->file($this->mdFile, $this->separator);
        } else {
            $txt = '';
            if ($this->mdFile) {
                $txt .= file_get_contents($this->mdFile);
            }
            if ($this->getContent()) {
                $txt .= "\n" . $this->getContent();
            }
            return Container::getMarkdown()->txt($txt, $this->separator);
        }
    }
protected function getMetaContent()
    {
        if ($this->mdFile && !file_exists($this->mdFile)) {
            throw new ArchException('Wrong markdown file [' . $this->mdFile . ']');
        }
        if ($this->mdFile && !$this->getContent()) {
            return Container::getMarkdown()->file($this->mdFile, $this->separator);
        } else {
            $txt = '';
            if ($this->mdFile) {
                $txt .= file_get_contents($this->mdFile);
            }
            if ($this->getContent()) {
                $txt .= "\n" . $this->getContent();
            }
            return Container::getMarkdown()->txt($txt, $this->separator);
        }
    }
protected function getMetaContent ( ) { if ( $ this -> mdFile && ! file_exists ( $ this -> mdFile ) ) { throw new ArchException ( 'Wrong markdown file [' . $ this -> mdFile . ']' ) ; } if ( $ this -> mdFile && ! $ this -> getContent ( ) ) { return Container :: getMarkdown ( ) -> file ( $ this -> mdFile , $ this -> separator ) ; } else { $ txt = '' ; if ( $ this -> mdFile ) { $ txt .= file_get_contents ( $ this -> mdFile ) ; } if ( $ this -> getContent ( ) ) { $ txt .= "\n" . $ this -> getContent ( ) ; } return Container :: getMarkdown ( ) -> txt ( $ txt , $ this -> separator ) ; } }
If file and text, append file and text
@return type
@throws ArchException
If file and text append file and text