protected function classPropertiesIntoStruct($className)
    {
        if (!isset($this->wsdlStruct[$className])) {
            $class = new ReflectionClass($className);
            $properties = $class->getProperties();
            $this->wsdlStruct['class'][$className]['property'] = array();
            for ($i = 0; $i < count($properties); ++$i) {
                if ($properties[$i]->isPublic()) {
                    preg_match_all(
                        '~@var\s(\S+)~',
                        $properties[$i]->getDocComment(),
                        $var
                    );

                    $_cleanType = str_replace('[]', '', $var[1][0], $_length);
                    $_typens    = str_repeat('ArrayOf', $_length);

                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['type']
                        = $_cleanType;
                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['wsdltype']
                        = $_typens.$_cleanType;
                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['length']
                        = $_length;
                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['array']
                        = ($_length > 0 && in_array($_cleanType, $this->simpleTypes)) ? true : false;
                    $isObject = (!in_array($_cleanType, $this->simpleTypes) && new ReflectionClass($_cleanType)) ? true : false;
                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['class']
                        = $isObject;
                    if ($isObject == true) {
                        $this->classPropertiesIntoStruct($_cleanType);
                    }
                    if ($_length > 0) {
                        $_typensSource = '';
                        for ($j = $_length; $j > 0;  --$j) {
                            $_typensSource .= 'ArrayOf';
                            $this->wsdlStruct['array'][$_typensSource.$_cleanType]
                                = substr(
                                    $_typensSource,
                                    0,
                                    strlen($_typensSource) - 7
                                )
                                . $_cleanType;
                        }
                    }
                }
            }
        }
    }
protected function classPropertiesIntoStruct($className)
    {
        if (!isset($this->wsdlStruct[$className])) {
            $class = new ReflectionClass($className);
            $properties = $class->getProperties();
            $this->wsdlStruct['class'][$className]['property'] = array();
            for ($i = 0; $i < count($properties); ++$i) {
                if ($properties[$i]->isPublic()) {
                    preg_match_all(
                        '~@var\s(\S+)~',
                        $properties[$i]->getDocComment(),
                        $var
                    );

                    $_cleanType = str_replace('[]', '', $var[1][0], $_length);
                    $_typens    = str_repeat('ArrayOf', $_length);

                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['type']
                        = $_cleanType;
                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['wsdltype']
                        = $_typens.$_cleanType;
                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['length']
                        = $_length;
                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['array']
                        = ($_length > 0 && in_array($_cleanType, $this->simpleTypes)) ? true : false;
                    $isObject = (!in_array($_cleanType, $this->simpleTypes) && new ReflectionClass($_cleanType)) ? true : false;
                    $this->wsdlStruct['class'][$className]['property'][$properties[$i]->getName()]['class']
                        = $isObject;
                    if ($isObject == true) {
                        $this->classPropertiesIntoStruct($_cleanType);
                    }
                    if ($_length > 0) {
                        $_typensSource = '';
                        for ($j = $_length; $j > 0;  --$j) {
                            $_typensSource .= 'ArrayOf';
                            $this->wsdlStruct['array'][$_typensSource.$_cleanType]
                                = substr(
                                    $_typensSource,
                                    0,
                                    strlen($_typensSource) - 7
                                )
                                . $_cleanType;
                        }
                    }
                }
            }
        }
    }
protected function classPropertiesIntoStruct ( $ className ) { if ( ! isset ( $ this -> wsdlStruct [ $ className ] ) ) { $ class = new ReflectionClass ( $ className ) ; $ properties = $ class -> getProperties ( ) ; $ this -> wsdlStruct [ 'class' ] [ $ className ] [ 'property' ] = array ( ) ; for ( $ i = 0 ; $ i < count ( $ properties ) ; ++ $ i ) { if ( $ properties [ $ i ] -> isPublic ( ) ) { preg_match_all ( '~@var\s(\S+)~' , $ properties [ $ i ] -> getDocComment ( ) , $ var ) ; $ _cleanType = str_replace ( '[]' , '' , $ var [ 1 ] [ 0 ] , $ _length ) ; $ _typens = str_repeat ( 'ArrayOf' , $ _length ) ; $ this -> wsdlStruct [ 'class' ] [ $ className ] [ 'property' ] [ $ properties [ $ i ] -> getName ( ) ] [ 'type' ] = $ _cleanType ; $ this -> wsdlStruct [ 'class' ] [ $ className ] [ 'property' ] [ $ properties [ $ i ] -> getName ( ) ] [ 'wsdltype' ] = $ _typens . $ _cleanType ; $ this -> wsdlStruct [ 'class' ] [ $ className ] [ 'property' ] [ $ properties [ $ i ] -> getName ( ) ] [ 'length' ] = $ _length ; $ this -> wsdlStruct [ 'class' ] [ $ className ] [ 'property' ] [ $ properties [ $ i ] -> getName ( ) ] [ 'array' ] = ( $ _length > 0 && in_array ( $ _cleanType , $ this -> simpleTypes ) ) ? true : false ; $ isObject = ( ! in_array ( $ _cleanType , $ this -> simpleTypes ) && new ReflectionClass ( $ _cleanType ) ) ? true : false ; $ this -> wsdlStruct [ 'class' ] [ $ className ] [ 'property' ] [ $ properties [ $ i ] -> getName ( ) ] [ 'class' ] = $ isObject ; if ( $ isObject == true ) { $ this -> classPropertiesIntoStruct ( $ _cleanType ) ; } if ( $ _length > 0 ) { $ _typensSource = '' ; for ( $ j = $ _length ; $ j > 0 ; -- $ j ) { $ _typensSource .= 'ArrayOf' ; $ this -> wsdlStruct [ 'array' ] [ $ _typensSource . $ _cleanType ] = substr ( $ _typensSource , 0 , strlen ( $ _typensSource ) - 7 ) . $ _cleanType ; } } } } } }
parse classes properties into struct

@var    string
@access private
@return null
parse classes properties into struct