public function checkPageSubjectInUrl() {
        if ($this->checkPageSubjectDefined()) {

            $url_segment             = $this->owner->URLSegment;
            $pagesubject_url_segment = $this->owner->generateURLSegment($this->owner->SEOPageSubject);

            if (preg_match('/' . preg_quote($pagesubject_url_segment, '/') . '/i', $url_segment)) {
                return true;
            }
            else {
                return false;
            }
        }
        return false;

    }
public function checkPageSubjectInUrl() {
        if ($this->checkPageSubjectDefined()) {

            $url_segment             = $this->owner->URLSegment;
            $pagesubject_url_segment = $this->owner->generateURLSegment($this->owner->SEOPageSubject);

            if (preg_match('/' . preg_quote($pagesubject_url_segment, '/') . '/i', $url_segment)) {
                return true;
            }
            else {
                return false;
            }
        }
        return false;

    }
public function checkPageSubjectInUrl ( ) { if ( $ this -> checkPageSubjectDefined ( ) ) { $ url_segment = $ this -> owner -> URLSegment ; $ pagesubject_url_segment = $ this -> owner -> generateURLSegment ( $ this -> owner -> SEOPageSubject ) ; if ( preg_match ( '/' . preg_quote ( $ pagesubject_url_segment , '/' ) . '/i' , $ url_segment ) ) { return true ; } else { return false ; } } return false ; }
checkPageSubjectInUrl.
Checks if defined PageSubject is present in the Page URLSegment

@param none
@return boolean
checkPageSubjectInUrl . Checks if defined PageSubject is present in the Page URLSegment