Пример #1
0
function getTransactionLabel( $transactionId ) {

	$o = OmegaWikiAttributes::getInstance();
	
	if ( $transactionId > 0 ) {
		$record = getTransactionRecord( $transactionId );
		
		$label =
			timestampAsText( $record->timestamp ) . ', ' .
			$record->user;
			
		$summary = $record->summary;
		
		if ( $summary != "" )
			$label .= ', ' . $summary;
			
		return $label;
	}
	else
		return "";
}
Пример #2
0
	public function getViewHTML( IdStack $idPath, $value ) {
		if ( $value != "" )
			return timestampAsText( $value );
		else
			return "";
	}