src/Webtrees/GedcomRecord.php
public function isFactSourced($eventslist){
	    if(empty($eventslist)) return 0;
		$isSourced=0;
		$facts = $this->gedcomrecord->getFacts($eventslist);
		foreach($facts as $fact){
			if($isSourced < Fact::MAX_IS_SOURCED_LEVEL){
				$dfact = new Fact($fact);
				$tmpIsSourced = $dfact->isSourced();
				if($tmpIsSourced != 0) {
					if($isSourced==0) {
						$isSourced =  $tmpIsSourced;
					}
					else{
						$isSourced = max($isSourced, $tmpIsSourced);
					}
				}
			}
		}
		return $isSourced;
	}
public function isFactSourced($eventslist){
	    if(empty($eventslist)) return 0;
		$isSourced=0;
		$facts = $this->gedcomrecord->getFacts($eventslist);
		foreach($facts as $fact){
			if($isSourced < Fact::MAX_IS_SOURCED_LEVEL){
				$dfact = new Fact($fact);
				$tmpIsSourced = $dfact->isSourced();
				if($tmpIsSourced != 0) {
					if($isSourced==0) {
						$isSourced =  $tmpIsSourced;
					}
					else{
						$isSourced = max($isSourced, $tmpIsSourced);
					}
				}
			}
		}
		return $isSourced;
	}
public function isFactSourced ( $ eventslist ) { if ( empty ( $ eventslist ) ) return 0 ; $ isSourced = 0 ; $ facts = $ this -> gedcomrecord -> getFacts ( $ eventslist ) ; foreach ( $ facts as $ fact ) { if ( $ isSourced < Fact :: MAX_IS_SOURCED_LEVEL ) { $ dfact = new Fact ( $ fact ) ; $ tmpIsSourced = $ dfact -> isSourced ( ) ; if ( $ tmpIsSourced != 0 ) { if ( $ isSourced == 0 ) { $ isSourced = $ tmpIsSourced ; } else { $ isSourced = max ( $ isSourced , $ tmpIsSourced ) ; } } } } return $ isSourced ; }
Check is an event associated to this record is sourced

@param string $eventslist
@return int Level of sources
Check is an event associated to this record is sourced