public function checkPageSubjectInFirstParagraph() {
        if ($this->checkPageSubjectDefined()) {
            $first_paragraph = $this->owner->dbObject('Content')->FirstParagraph();

            if (trim($first_paragraph != '')) {
                if (preg_match('/' . preg_quote($this->owner->SEOPageSubject, '/') . '/i', $first_paragraph)) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }

        return false;
    }
public function checkPageSubjectInFirstParagraph() {
        if ($this->checkPageSubjectDefined()) {
            $first_paragraph = $this->owner->dbObject('Content')->FirstParagraph();

            if (trim($first_paragraph != '')) {
                if (preg_match('/' . preg_quote($this->owner->SEOPageSubject, '/') . '/i', $first_paragraph)) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }

        return false;
    }
public function checkPageSubjectInFirstParagraph ( ) { if ( $ this -> checkPageSubjectDefined ( ) ) { $ first_paragraph = $ this -> owner -> dbObject ( 'Content' ) -> FirstParagraph ( ) ; if ( trim ( $ first_paragraph != '' ) ) { if ( preg_match ( '/' . preg_quote ( $ this -> owner -> SEOPageSubject , '/' ) . '/i' , $ first_paragraph ) ) { return true ; } else { return false ; } } } return false ; }
checkPageSubjectInFirstParagraph.
Checks if defined PageSubject is present in the Page Content's First Paragraph

@param none
@return boolean
checkPageSubjectInFirstParagraph . Checks if defined PageSubject is present in the Page Content s First Paragraph