public function describeTable($table)
    {
        if (null !== $this->logger) {
            $this->log('Describe table '.$table);
        }

        $parameters = array(
            'TableName' => $table,
        );

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

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

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

        $tableDescription = new Table\TableDescription();
        $tableDescription->populateFromDynamoDB($response['Table']);

        return $tableDescription;
    }
public function describeTable($table)
    {
        if (null !== $this->logger) {
            $this->log('Describe table '.$table);
        }

        $parameters = array(
            'TableName' => $table,
        );

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

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

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

        $tableDescription = new Table\TableDescription();
        $tableDescription->populateFromDynamoDB($response['Table']);

        return $tableDescription;
    }
public function describeTable ( $ table ) { if ( null !== $ this -> logger ) { $ this -> log ( 'Describe table ' . $ table ) ; } $ parameters = array ( 'TableName' => $ table , ) ; if ( null !== $ this -> logger ) { $ this -> log ( 'DescribeTable request paramaters : ' . print_r ( $ parameters , true ) , Logger :: DEBUG ) ; } $ response = $ this -> connector -> describeTable ( $ parameters ) ; if ( null !== $ this -> logger ) { $ this -> log ( 'DescribeTable request response : ' . print_r ( $ response , true ) , Logger :: DEBUG ) ; } $ tableDescription = new Table \ TableDescription ( ) ; $ tableDescription -> populateFromDynamoDB ( $ response [ 'Table' ] ) ; return $ tableDescription ; }
Describe table via the describe_table call
@param string $table The name of the table
@return Table\TableDescription
Describe table via the describe_table call