original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: Extract a create query from this class
  
  @param array $input
  @return array
docstring_tokens: Extract a create query from this class