public static function onValidUpdate(&$input, $newErrors) {
		// Don't care about some errors, other fields should be updated.
		$found = 0;
		foreach( $input as $fieldname => $fieldvalue ) {
			if( in_array($fieldname, static::$fields) ) {
				$found++;
			}
		}
		if( $found ) {
			static::fillLogEvent($input, 'edit');
			static::fillLogEvent($input, 'update');
		}
		return $found ? true : false;
	}
public static function onValidUpdate(&$input, $newErrors) {
		// Don't care about some errors, other fields should be updated.
		$found = 0;
		foreach( $input as $fieldname => $fieldvalue ) {
			if( in_array($fieldname, static::$fields) ) {
				$found++;
			}
		}
		if( $found ) {
			static::fillLogEvent($input, 'edit');
			static::fillLogEvent($input, 'update');
		}
		return $found ? true : false;
	}
public static function onValidUpdate ( & $ input , $ newErrors ) { // Don't care about some errors, other fields should be updated. $ found = 0 ; foreach ( $ input as $ fieldname => $ fieldvalue ) { if ( in_array ( $ fieldname , static :: $ fields ) ) { $ found ++ ; } } if ( $ found ) { static :: fillLogEvent ( $ input , 'edit' ) ; static :: fillLogEvent ( $ input , 'update' ) ; } return $ found ? true : false ; }
Callback when validating update

@param array $input
@param int $newErrors
@return boolean
Callback when validating update