original_string: public function pcmlToArray(\SimpleXMLElement $xmlObj)
      {
          $dataDescription = array();
  
          // put structs in its own variable that can be accessed independently.
          $this->_pcmlStructs = $xmlObj->xpath('struct');
  
          // looking for ->data and ->struct.
          $dataElements = $xmlObj->xpath('program/data');
  
          if ($dataElements) {
              foreach ($dataElements as $dataElement) {
  
                  $dataDescription[] = $this->singlePcmlToArray($dataElement);
              }
          }
  
          return $dataDescription;
      }
code: public function pcmlToArray(\SimpleXMLElement $xmlObj)
      {
          $dataDescription = array();
  
          // put structs in its own variable that can be accessed independently.
          $this->_pcmlStructs = $xmlObj->xpath('struct');
  
          // looking for ->data and ->struct.
          $dataElements = $xmlObj->xpath('program/data');
  
          if ($dataElements) {
              foreach ($dataElements as $dataElement) {
  
                  $dataDescription[] = $this->singlePcmlToArray($dataElement);
              }
          }
  
          return $dataDescription;
      }
code_tokens: public function pcmlToArray ( \ SimpleXMLElement $ xmlObj ) { $ dataDescription = array ( ) ; // put structs in its own variable that can be accessed independently. $ this -> _pcmlStructs = $ xmlObj -> xpath ( 'struct' ) ; // looking for ->data and ->struct. $ dataElements = $ xmlObj -> xpath ( 'program/data' ) ; if ( $ dataElements ) { foreach ( $ dataElements as $ dataElement ) { $ dataDescription [ ] = $ this -> singlePcmlToArray ( $ dataElement ) ; } } return $ dataDescription ; }
docstring: given an XML object containing a PCML program definition, return an old toolkit style of data description array.
  
  @param \SimpleXMLElement $xmlObj
  @return array
docstring_tokens: given an XML object containing a PCML program definition return an old toolkit style of data description array .