Operation list All

List Currencys

@param  PageRequest $page_request  (optional)

@throws \\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \\Resources\page[Currency]
353559
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllCurrencies(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllCurrencies();
        }
    }
43301
def get_currencies(self, **params):
        """"""
        response = self._get('v2', 'currencies', params=params)
        return self._make_api_object(response, APIObject)
59106
public function listCurrencies() {
    if (is_null($this->currencyCodes)) {
      $directory = new \RecursiveDirectoryIterator($this->getCurrencyResourceDirectory());
      foreach ($directory as $item) {
        if (preg_match('#^...\.json$#', $item->getFilename())) {
          $this->currencyCodes[] = substr($item->getFilename(), 0, 3);
        }
      }
    }

    return $this->currencyCodes;
  }
293279
function fetchCurrencyList( $status = false )
    {
        $conditions = null;
        $status = eZCurrencyData::statusStringToNumeric( $status );
        if ( $status !== false )
        {
            $conditions = array( 'status' => $status );
        }

        $currencyList = eZCurrencyData::fetchList( $conditions );

        $result = array( 'result' => $currencyList );

        return $result;
    }
1351094
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllFreeShippingPromotions(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllFreeShippingPromotions();
        }
    }
1056067
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllTransactions(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllTransactions();
        }
    }
895148
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllCancelOperations(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllCancelOperations();
        }
    }
111312
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllCreditCardPayments(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllCreditCardPayments();
        }
    }
755063
public function parentPageListAction(Request $request)
    {
        $locale = $request->get('locale');
        $pages = [];
        $pageManager = $this->get('networking_init_cms.page_manager');

        if ($result = $pageManager->getParentPagesChoices($locale)) {
            foreach ($result as $page) {
                /* @var PageInterface $page */
                $pages[$page->getId()] = [$page->getAdminTitle()];
            }
        }

        return $this->renderJson($pages);
    }
22909
@Override
    public Set<CurrencyUnit> getCurrencies(CurrencyQuery query) {
        Set<CurrencyUnit> result = new HashSet<>();
        for (Locale locale : query.getCountries()) {
            try {
                result.add(Waehrung.of(Currency.getInstance(locale)));
            } catch (IllegalArgumentException ex) {
                LOG.log(Level.WARNING, "Cannot get currency for locale '" + locale + "':", ex);
            }
        }
        for (String currencyCode : query.getCurrencyCodes()) {
            try {
                result.add(Waehrung.of(currencyCode));
            } catch (IllegalArgumentException ex) {
                LOG.log(Level.WARNING, "Cannot get currency '" + currencyCode + "':", ex);
            }
        }
        for (CurrencyProviderSpi spi : Bootstrap.getServices(CurrencyProviderSpi.class)) {
            result.addAll(spi.getCurrencies(query));
        }
        return result;
    }
1170206
public function getCurrencies()
    {
        $response = $this->sendRequest(
            $this->serviceBaseUrl . 'GetCurrencies',
            ['MerchantLogin' => $this->auth->getMerchantLogin(), 'Language' => $this->culture],
            $this->requestMethod
        );

        $sxe = simplexml_load_string($response);
        $this->parseError($sxe);

        if (!$sxe->Groups->Group) {
            return [];
        }
        $groups = [];
        foreach ($sxe->Groups->Group as $i => $group) {
            $items = [];
            foreach ($group->Items->Currency as $item) {
                $item = (array)$item;
                $items[] = $item['@attributes'];
            }
            $groups[] = [
                'Code'        => (string)$group->attributes()->Code,
                'Description' => (string)$group->attributes()->Description,
                'Items'       => $items,
            ];
        }
        return $groups;
    }
292450
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllTaxRates(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllTaxRates();
        }
    }
381739
private function setUserCurrency($currency, $request)
    {
        $currency = strtoupper($currency);

        // Set user selection globally
        currency()->setUserCurrency($currency);

        // Save it for later too!
        $request->getSession()->put(['currency' => $currency]);

        return $currency;
    }
1327753
def list_pages_ajax(request, invalid_move=False):
    """"""
    language = get_language_from_request(request)
    pages = Page.objects.root()
    context = {
        'can_publish': request.user.has_perm('pages.can_publish'),
        'invalid_move': invalid_move,
        'language': language,
        'pages': pages,
    }
    return render(
        request, "admin/pages/page/change_list_table.html",
        context)
432104
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllTaxClasses(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllTaxClasses();
        }
    }
538084
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllStripeGateways(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllStripeGateways();
        }
    }
425079
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllRefundOperations(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllRefundOperations();
        }
    }