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);
        }
    }
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);
        }
    }
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 ) ; } }
Generate map of public class attributes

@param  string $typename type name
@param  DOMElement $typexml target XML element
@return void
Generate map of public class attributes