public static function extractCreateQuery(&$input) {
		// To do on Edit
		static::onEdit($input, null);
		
		foreach( $input as $fieldname => $fieldvalue ) {
			if( !in_array($fieldname, static::$fields) ) {
				unset($input[$fieldname]);
			}
		}
		
		$options = array(
			'table' => static::$table,
			'what'  => $input,
		);
		return $options;
	}
public static function extractCreateQuery(&$input) {
		// To do on Edit
		static::onEdit($input, null);
		
		foreach( $input as $fieldname => $fieldvalue ) {
			if( !in_array($fieldname, static::$fields) ) {
				unset($input[$fieldname]);
			}
		}
		
		$options = array(
			'table' => static::$table,
			'what'  => $input,
		);
		return $options;
	}
public static function extractCreateQuery ( & $ input ) { // To do on Edit static :: onEdit ( $ input , null ) ; foreach ( $ input as $ fieldname => $ fieldvalue ) { if ( ! in_array ( $ fieldname , static :: $ fields ) ) { unset ( $ input [ $ fieldname ] ) ; } } $ options = array ( 'table' => static :: $ table , 'what' => $ input , ) ; return $ options ; }
Extract a create query from this class

@param array $input
@return array
Extract a create query from this class