public function createPropertyPathsFromCommentArray($comments)
    {
        $out = '';

        foreach ($comments as $mainKey => $subKeys) {
            foreach ($subKeys as $subKey => $comment) {
                // uncommented entries are undocumented & for internal use only (I guess)
                if ('' === $comment) {
                    continue;
                }

                $defaultConfigurationValue = $this->defaultConfiguration[$mainKey][$subKey];

                // non-scalar values are not available in InstallTool (& also not handled by phing properties)
                if (FALSE === is_scalar($defaultConfigurationValue)) {
                    continue;
                }

                $out .= strtr($this->outputLine, array(
                    '%newline%' => chr(10),
                    '%comment%' => $comment,
                    '%mainKey%' => $mainKey,
                    '%subKey%' => $subKey,
                    '%defaultConfigurationValue%' => $defaultConfigurationValue,
                ));
            }
        }

        return $out;
    }
public function createPropertyPathsFromCommentArray($comments)
    {
        $out = '';

        foreach ($comments as $mainKey => $subKeys) {
            foreach ($subKeys as $subKey => $comment) {
                // uncommented entries are undocumented & for internal use only (I guess)
                if ('' === $comment) {
                    continue;
                }

                $defaultConfigurationValue = $this->defaultConfiguration[$mainKey][$subKey];

                // non-scalar values are not available in InstallTool (& also not handled by phing properties)
                if (FALSE === is_scalar($defaultConfigurationValue)) {
                    continue;
                }

                $out .= strtr($this->outputLine, array(
                    '%newline%' => chr(10),
                    '%comment%' => $comment,
                    '%mainKey%' => $mainKey,
                    '%subKey%' => $subKey,
                    '%defaultConfigurationValue%' => $defaultConfigurationValue,
                ));
            }
        }

        return $out;
    }
public function createPropertyPathsFromCommentArray ( $ comments ) { $ out = '' ; foreach ( $ comments as $ mainKey => $ subKeys ) { foreach ( $ subKeys as $ subKey => $ comment ) { // uncommented entries are undocumented & for internal use only (I guess) if ( '' === $ comment ) { continue ; } $ defaultConfigurationValue = $ this -> defaultConfiguration [ $ mainKey ] [ $ subKey ] ; // non-scalar values are not available in InstallTool (& also not handled by phing properties) if ( FALSE === is_scalar ( $ defaultConfigurationValue ) ) { continue ; } $ out .= strtr ( $ this -> outputLine , array ( '%newline%' => chr ( 10 ) , '%comment%' => $ comment , '%mainKey%' => $ mainKey , '%subKey%' => $ subKey , '%defaultConfigurationValue%' => $ defaultConfigurationValue , ) ) ; } } return $ out ; }
creates the property file lines for the given comments array

@param array $comments
@return string
creates the property file lines for the given comments array