PATH:
home
/
urbaoubp
/
public_html
/
wp-content
/
plugins
/
woocommerce
/
src
/
Admin
/
API
/
Reports
<?php /** * REST API Reports exportable traits * * Collection of utility methods for exportable reports. */ namespace Automattic\WooCommerce\Admin\API\Reports; defined( 'ABSPATH' ) || exit; /** * ExportableTraits class. */ trait ExportableTraits { /** * Format numbers for CSV using store precision setting. * * @param string|float $value Numeric value. * @return string Formatted value. */ public static function csv_number_format( $value ) { $decimals = wc_get_price_decimals(); // See: @woocommerce/currency: getCurrencyFormatDecimal(). return number_format( $value, $decimals, '.', '' ); } }
[+]
Categories
[-] GenericController.php
[edit]
[-] TimeInterval.php
[edit]
[+]
Stock
[+]
Downloads
[+]
PerformanceIndicators
[+]
Variations
[+]
Products
[-] ExportableInterface.php
[edit]
[-] GenericQuery.php
[edit]
[+]
Revenue
[-] SqlQuery.php
[edit]
[-] ExportableTraits.php
[edit]
[+]
Customers
[-] OrderAwareControllerTrait.php
[edit]
[+]
Coupons
[+]
..
[-] Cache.php
[edit]
[-] Query.php
[edit]
[-] DataStore.php
[edit]
[+]
Taxes
[-] FilteredGetDataTrait.php
[edit]
[-] GenericStatsController.php
[edit]
[+]
Import
[-] StatsDataStoreTrait.php
[edit]
[-] Controller.php
[edit]
[+]
Export
[-] DataStoreInterface.php
[edit]
[-] ParameterException.php
[edit]
[-] Segmenter.php
[edit]
[+]
Orders