P
Size: a a a
P
DM
DM
P
P
BT
Вот в обрезанном варианте модуль как-то так и выглядит
namespace Modules\Shop;
class Module extends \Platform\Module {
function getCategories ( $marketpoints = [], $id = [], $parents = [], $flags = [], $deep = 0 ) {
$result = [];
$result = $this -> getModuleObject( 'resources' ) -> get( [], true, true );
return $result;
}
function getProducts ( ) {
$result = [];
$searchOptions = [ 'filter' =>
[ 'type' => 'product' ]
];
$result = $this -> getModuleObject( 'resources' ) -> get( $searchOptions, true, true );
return $result;
}
}
P
P
BT
P
P
P
P
BT
P
P
P
P
P