public function generateURLSegment()
    {
        $filter = URLSegmentFilter::create();
        $name = $this->owner->FirstName . ' ' . $this->owner->Surname;
        $urlSegment = $filter->filter($name);

        if (!$urlSegment || $urlSegment == '-' || $urlSegment == '-1') {
            $urlSegment = 'profile-' . $this->owner->ID;
        }

        return $urlSegment;
    }
public function generateURLSegment()
    {
        $filter = URLSegmentFilter::create();
        $name = $this->owner->FirstName . ' ' . $this->owner->Surname;
        $urlSegment = $filter->filter($name);

        if (!$urlSegment || $urlSegment == '-' || $urlSegment == '-1') {
            $urlSegment = 'profile-' . $this->owner->ID;
        }

        return $urlSegment;
    }
public function generateURLSegment ( ) { $ filter = URLSegmentFilter :: create ( ) ; $ name = $ this -> owner -> FirstName . ' ' . $ this -> owner -> Surname ; $ urlSegment = $ filter -> filter ( $ name ) ; if ( ! $ urlSegment || $ urlSegment == '-' || $ urlSegment == '-1' ) { $ urlSegment = 'profile-' . $ this -> owner -> ID ; } return $ urlSegment ; }
Generate a unique URL segment based on the Member's name.

@return string
Generate a unique URL segment based on the Member s name .