Function: getDataContainerTableList

Returns the structure of the configured DataContainer tables. All DataContainer tables are organized in DataContainers. For example: all product related tables can be stored in the DataContainer "Products".

Program example: processing Response of getDataContainerTableList
<?php

    # Your source code before
    # ...

    $result = json_decode ( $response, true );

    if ( intval ( $result['status'] ) == 1 )
    {
      foreach ( $result['data'] as $dataContainerGroup => $dataContainerTables ) 
      {
        echo ( "Name of the DataContainer: " . $dataContainerGroup . "\n" );
        echo print_r ( $dataContainerTables, 1 );
      }
    }
?>
Result example for getDataContainerTableList
Name of the DataContainer: products
Array
(
    [Produkte] => Array
        (
            [0] => Array
                (
                    [code] => 
                    [id] => 196
                    [title] => Products
                    [fields] => Array
                        (
                            [0] => Array
                                (
                                    [name] => name
                                    [type] => text
                                )

                            [1] => Array
                                (
                                    [name] => description
                                    [type] => text
                                )

                            [2] => Array
                                (
                                    [name] => category
                                    [type] => relation
                                )

                            [3] => Array
                                (
                                    [name] => height
                                    [type] => real_number
                                )

                            [4] => Array
                                (
                                    [name] => width
                                    [type] => real_number
                                )

                            [5] => Array
                                (
                                    [name] => color
                                    [type] => color
                                )

                            [6] => Array
                                (
                                    [name] => image
                                    [type] => file
                                )
                        )
                )
        )
)

More information


Feedback or Questions

We are always happy to help you with questions about the code or other questions.

Was this page helpful? Yes No

Topics on this page