private static function complementsLoadRequest()
    {
        $complements = self::getList(self::$config['filter'], self::$config['sort']);

        $response = [
            'complements' => array_values($complements),
            'errors' => self::$errors,
        ];

        echo json_encode($response);
    }
private static function complementsLoadRequest()
    {
        $complements = self::getList(self::$config['filter'], self::$config['sort']);

        $response = [
            'complements' => array_values($complements),
            'errors' => self::$errors,
        ];

        echo json_encode($response);
    }
private static function complementsLoadRequest ( ) { $ complements = self :: getList ( self :: $ config [ 'filter' ] , self :: $ config [ 'sort' ] ) ; $ response = [ 'complements' => array_values ( $ complements ) , 'errors' => self :: $ errors , ] ; echo json_encode ( $ response ) ; }
Complements load request.

@uses \Eliasis\Complement\Complement::getList()
@uses \Eliasis\Complement\Complement::$errors
Complements load request .