public function mentionedMembers() {
		$members = array();
		if (preg_match_all('/@(.*?):(\d+)/', $this->Content, $matches)) {
			foreach ($matches[2] as $match) {
				$member = Member::get()->byID((int) $match);
				if ($member && $member->ID) {
					$members[] = $member;
				}
			}
		}
		return $members;
	}
public function mentionedMembers() {
		$members = array();
		if (preg_match_all('/@(.*?):(\d+)/', $this->Content, $matches)) {
			foreach ($matches[2] as $match) {
				$member = Member::get()->byID((int) $match);
				if ($member && $member->ID) {
					$members[] = $member;
				}
			}
		}
		return $members;
	}
public function mentionedMembers ( ) { $ members = array ( ) ; if ( preg_match_all ( '/@(.*?):(\d+)/' , $ this -> Content , $ matches ) ) { foreach ( $ matches [ 2 ] as $ match ) { $ member = Member :: get ( ) -> byID ( ( int ) $ match ) ; if ( $ member && $ member -> ID ) { $ members [ ] = $ member ; } } } return $ members ; }
Get the list of members mentioned in this post
Get the list of members mentioned in this post