Operation list All

List CustomerGroups

@param  PageRequest $page_request  (optional)

@throws \\ApiException on non-2xx response
@throws \InvalidArgumentException
@return \\Resources\page[CustomerGroup]
322480
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllCustomerGroups(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllCustomerGroups();
        }
    }
275237
public function getAllGroups($page, $max = 50)
    {
        $query = $this->groupRepo->findAll(false);
        return $this->pagerFactory->createPager($query, $page, $max);
    }
1222909
public function getAll($page = null)
    {
        $page = !empty($page) ? "page={$page}" : '';
        $request = $this->paystackHttpClient->get(
            $this->transformUrl(Resource::CUSTOMERS_URL, '').$page
        );

        return $this->processResourceRequestResponse($request);
    }
1345415
public function listGroup(ListGroupRequest $request)
    {
        $response = new ListGroupResponse();
        return $this->client->sendRequest($request, $response);
    }
1043883
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllCustomers(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllCustomers();
        }
    }
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();
        }
    }
308169
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllCashOnDeliveryPayments(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllCashOnDeliveryPayments();
        }
    }
1252769
public function getGroups($page, $max = 50, $orderedBy = 'id', $order = null)
    {
        $query = $this->groupRepo->findAll(false, $orderedBy, $order);

        return $this->pagerFactory->createPager($query, $page, $max);
    }
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();
        }
    }
1188917
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllAddresses(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllAddresses();
        }
    }
355481
public function index(PageRequest $request)
    {
        if ($this->response->typeIs('json')) {
            $pageLimit = $request->input('pageLimit');
            $data      = $this->repository
                ->setPresenter(\Litecms\Page\Repositories\Presenter\PageListPresenter::class)
                ->getDataTable($pageLimit);
            return $this->response
                ->data($data)
                ->output();
        }

        $pages = $this->repository->paginate();

        return $this->response->setMetaTitle(trans('page::page.names'))
            ->view('page::page.index')
            ->data(compact('pages'))
            ->output();
    }
1054178
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllCountriesGeoZones(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllCountriesGeoZones();
        }
    }
266525
@RequestMapping(path = "", method = RequestMethod.GET)
    public Page<Customer> getCustomers(Pageable pageable){
        return customerService.getCustomers(pageable);
    }
68087
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllTableRateShippings(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllTableRateShippings();
        }
    }
63862
static function FindPageGroup(Page $page)
    {
        $currPage = $page;
        $result = null;
        do 
        {
            $result = $currPage->GetUserGroup();
            $currPage = $currPage->GetParent();
        } 
        while (!$result && $currPage);
        if (!$result && $page->GetSite())
        {
            return $page->GetSite()->GetUserGroup();
        }
        return $result;
    }
291863
public function retrieveCustomer($customer_id)
    {
        list($response, $statusCode, $httpHeader) = $this->retrieveCustomerWithHttpInfo ($customer_id);
        return $response; 
    }
39857
public function indexAction(Request $request)
    {
        $channel = $this->getSelectedChannel();

        $builder = $this->getDocumentManager()->createQueryBuilder(ContentTypePage::class)
            ->field('channel.$id')->equals($channel->getId());

        $pagination = $this->getPaginator()->paginate(
            $builder,
            $request->query->get('page', 1),
            20
        );

        return [
            'pages' => $pagination,
            'channels' => $this->getChannels(),
            'selectedChannel' => $channel,
        ];
    }