original_string: protected function _addClassAttributes($typename, DOMElement $typexml)
      {
          // Do not try to autoload here because _phpTypeToAS should
          // have already attempted to load this class
          if (!class_exists($typename, false)) {
              return;
          }
  
          $rc = new Zend_Reflection_Class($typename);
          foreach ($rc->getProperties() as $prop) {
              if (!$prop->isPublic()) {
                  continue;
              }
  
              $propxml = $this->_xml->createElement('property');
              $propxml->setAttribute('name', $prop->getName());
  
              $type = $this->_registerType($this->_getPropertyType($prop));
              $propxml->setAttribute('type', $type);
  
              $typexml->appendChild($propxml);
          }
      }
code: protected function _addClassAttributes($typename, DOMElement $typexml)
      {
          // Do not try to autoload here because _phpTypeToAS should
          // have already attempted to load this class
          if (!class_exists($typename, false)) {
              return;
          }
  
          $rc = new Zend_Reflection_Class($typename);
          foreach ($rc->getProperties() as $prop) {
              if (!$prop->isPublic()) {
                  continue;
              }
  
              $propxml = $this->_xml->createElement('property');
              $propxml->setAttribute('name', $prop->getName());
  
              $type = $this->_registerType($this->_getPropertyType($prop));
              $propxml->setAttribute('type', $type);
  
              $typexml->appendChild($propxml);
          }
      }
code_tokens: protected function _addClassAttributes ( $ typename , DOMElement $ typexml ) { // Do not try to autoload here because _phpTypeToAS should // have already attempted to load this class if ( ! class_exists ( $ typename , false ) ) { return ; } $ rc = new Zend_Reflection_Class ( $ typename ) ; foreach ( $ rc -> getProperties ( ) as $ prop ) { if ( ! $ prop -> isPublic ( ) ) { continue ; } $ propxml = $ this -> _xml -> createElement ( 'property' ) ; $ propxml -> setAttribute ( 'name' , $ prop -> getName ( ) ) ; $ type = $ this -> _registerType ( $ this -> _getPropertyType ( $ prop ) ) ; $ propxml -> setAttribute ( 'type' , $ type ) ; $ typexml -> appendChild ( $ propxml ) ; } }
docstring: Generate map of public class attributes
  
  @param  string $typename type name
  @param  DOMElement $typexml target XML element
  @return void
docstring_tokens: Generate map of public class attributes