private function getElementValue(AbstractClassContent $content, Page $page)
    {
        $draft = $this->releaseDraft($content);

        if ($content instanceof File) {
            $value = $content->path;
        } elseif ($content instanceof Keyword) {
            $value = $this->getKeyword($content);
        } else {
            $value = trim(str_replace(array("\n", "\r"), '', strip_tags(''.$content)));
        }

        $this->setMainNode($content, $page);
        $this->restoreDraft($content, $draft);

        return $value;
    }
private function getElementValue(AbstractClassContent $content, Page $page)
    {
        $draft = $this->releaseDraft($content);

        if ($content instanceof File) {
            $value = $content->path;
        } elseif ($content instanceof Keyword) {
            $value = $this->getKeyword($content);
        } else {
            $value = trim(str_replace(array("\n", "\r"), '', strip_tags(''.$content)));
        }

        $this->setMainNode($content, $page);
        $this->restoreDraft($content, $draft);

        return $value;
    }
private function getElementValue ( AbstractClassContent $ content , Page $ page ) { $ draft = $ this -> releaseDraft ( $ content ) ; if ( $ content instanceof File ) { $ value = $ content -> path ; } elseif ( $ content instanceof Keyword ) { $ value = $ this -> getKeyword ( $ content ) ; } else { $ value = trim ( str_replace ( array ( "\n" , "\r" ) , '' , strip_tags ( '' . $ content ) ) ) ; } $ this -> setMainNode ( $ content , $ page ) ; $ this -> restoreDraft ( $ content , $ draft ) ; return $ value ; }
Returns value for Element content.

@param  AbstractClassContent $content

@return string
Returns value for Element content .