original_string: public function getAvailableMetadataFormats()
      {
          $data = array();
  
          // List identifiers
          if (is_null($this->metadataIterator)) {
              $this->metadataIterator = $this->endpoint->listMetadataFormats();
          }
  
          $data = array(
              'header' => array('Metadata Prefix', 'Schema', 'Namespace'),
              'rows' => array(),
          );
  
          foreach ($this->metadataIterator as $rec) {
              $data['rows'][] = array(
                  $rec->metadataPrefix,
                  $rec->schema,
                  $rec->metadataNamespace
              );
          }
  
          return $data;
      }
code: public function getAvailableMetadataFormats()
      {
          $data = array();
  
          // List identifiers
          if (is_null($this->metadataIterator)) {
              $this->metadataIterator = $this->endpoint->listMetadataFormats();
          }
  
          $data = array(
              'header' => array('Metadata Prefix', 'Schema', 'Namespace'),
              'rows' => array(),
          );
  
          foreach ($this->metadataIterator as $rec) {
              $data['rows'][] = array(
                  $rec->metadataPrefix,
                  $rec->schema,
                  $rec->metadataNamespace
              );
          }
  
          return $data;
      }
code_tokens: public function getAvailableMetadataFormats ( ) { $ data = array ( ) ; // List identifiers if ( is_null ( $ this -> metadataIterator ) ) { $ this -> metadataIterator = $ this -> endpoint -> listMetadataFormats ( ) ; } $ data = array ( 'header' => array ( 'Metadata Prefix' , 'Schema' , 'Namespace' ) , 'rows' => array ( ) , ) ; foreach ( $ this -> metadataIterator as $ rec ) { $ data [ 'rows' ] [ ] = array ( $ rec -> metadataPrefix , $ rec -> schema , $ rec -> metadataNamespace ) ; } return $ data ; }
docstring: Retrieve a list of available metadata format schemas from the endpoint.
  
  @return array An array containing data in a tabular format.
docstring_tokens: Retrieve a list of available metadata format schemas from the endpoint .