public static function from_model( $model ) {

		$query        = new static( $model::table(), $GLOBALS['wpdb'] );
		$query->model = $model;

		return $query;
	}
public static function from_model( $model ) {

		$query        = new static( $model::table(), $GLOBALS['wpdb'] );
		$query->model = $model;

		return $query;
	}
public static function from_model ( $ model ) { $ query = new static ( $ model :: table ( ) , $ GLOBALS [ 'wpdb' ] ) ; $ query -> model = $ model ; return $ query ; }
Create a new FluentQuery object from a model.

@since 2.0

@param string $model

@return static
Create a new FluentQuery object from a model .