public function listTables($limit = null, $exclusiveStartTableName = null)
    {
        if (null !== $this->logger) {
            $this->log('List tables');
        }

        $parameters = array();
        if (null !== $limit) {
            $parameters['Limit'] = $limit;
        }
        if (null !== $exclusiveStartTableName) {
            $parameters['ExclusiveStartTableName'] = $exclusiveStartTableName;
        }

        if (null !== $this->logger) {
            $this->log('ListTable request paramaters : '.print_r($parameters, true), Logger::DEBUG);
        }

        $response = $this->connector->listTables($parameters);

        if (null !== $this->logger) {
            $this->log('ListTable request response : '.print_r($response, true), Logger::DEBUG);
        }

        $tables = new Table\TableCollection((isset($response['LastEvaluatedTableName'])?$response['LastEvaluatedTableName']:null));
        if (!empty($response['TableNames'])) {
            foreach ($response['TableNames'] as $table) {
                $tables->add($table);
            }
        }
        return $tables;
    }
public function listTables($limit = null, $exclusiveStartTableName = null)
    {
        if (null !== $this->logger) {
            $this->log('List tables');
        }

        $parameters = array();
        if (null !== $limit) {
            $parameters['Limit'] = $limit;
        }
        if (null !== $exclusiveStartTableName) {
            $parameters['ExclusiveStartTableName'] = $exclusiveStartTableName;
        }

        if (null !== $this->logger) {
            $this->log('ListTable request paramaters : '.print_r($parameters, true), Logger::DEBUG);
        }

        $response = $this->connector->listTables($parameters);

        if (null !== $this->logger) {
            $this->log('ListTable request response : '.print_r($response, true), Logger::DEBUG);
        }

        $tables = new Table\TableCollection((isset($response['LastEvaluatedTableName'])?$response['LastEvaluatedTableName']:null));
        if (!empty($response['TableNames'])) {
            foreach ($response['TableNames'] as $table) {
                $tables->add($table);
            }
        }
        return $tables;
    }
public function listTables ( $ limit = null , $ exclusiveStartTableName = null ) { if ( null !== $ this -> logger ) { $ this -> log ( 'List tables' ) ; } $ parameters = array ( ) ; if ( null !== $ limit ) { $ parameters [ 'Limit' ] = $ limit ; } if ( null !== $ exclusiveStartTableName ) { $ parameters [ 'ExclusiveStartTableName' ] = $ exclusiveStartTableName ; } if ( null !== $ this -> logger ) { $ this -> log ( 'ListTable request paramaters : ' . print_r ( $ parameters , true ) , Logger :: DEBUG ) ; } $ response = $ this -> connector -> listTables ( $ parameters ) ; if ( null !== $ this -> logger ) { $ this -> log ( 'ListTable request response : ' . print_r ( $ response , true ) , Logger :: DEBUG ) ; } $ tables = new Table \ TableCollection ( ( isset ( $ response [ 'LastEvaluatedTableName' ] ) ? $ response [ 'LastEvaluatedTableName' ] : null ) ) ; if ( ! empty ( $ response [ 'TableNames' ] ) ) { foreach ( $ response [ 'TableNames' ] as $ table ) { $ tables -> add ( $ table ) ; } } return $ tables ; }
List tables via the list_tables call
@param integer $limit
@param string $exclusiveStartTableName
@return Table\TableCollection
List tables via the list_tables call