public static function completeFields($data) {
		foreach( static::$fields as $fieldname ) {
			if( !isset($data[$fieldname]) ) {
				$data[$fieldname] = '';
			}
		}
		return $data;
	}
public static function completeFields($data) {
		foreach( static::$fields as $fieldname ) {
			if( !isset($data[$fieldname]) ) {
				$data[$fieldname] = '';
			}
		}
		return $data;
	}
public static function completeFields ( $ data ) { foreach ( static :: $ fields as $ fieldname ) { if ( ! isset ( $ data [ $ fieldname ] ) ) { $ data [ $ fieldname ] = '' ; } } return $ data ; }
Complete missing fields

@param array $data The data array to complete.
@return array The completed data array.

Complete an array of data of an object of this class by setting missing fields with empty string.
Complete missing fields