original_string: public static function getAttributes($onlyAttributesOfSimpleDatatypes = false)
      {
          $oSelfReflection = new \ReflectionClass(static::$m__sClassName);
          $oPropertyArray = $oSelfReflection->getProperties(
              \ReflectionProperty::IS_PUBLIC |
              \ReflectionProperty::IS_PROTECTED |
              \ReflectionProperty::IS_PRIVATE);
  
          $count = 0;
          while ($count < count($oPropertyArray)) {
              $sAttributeName = $oPropertyArray[$count]->getName();
              if (
                  // TODO generalize attribute prefix (sample "m_-s-", (start 2, length 1) )
                  substr($sAttributeName, 1, 1) != "_" ||
                  substr($sAttributeName, 2, 1) == "_" ||
                  ($onlyAttributesOfSimpleDatatypes && substr($sAttributeName, 2, 1) == "o")
              ) {
                  unset($oPropertyArray[$count]);
              }
              $count++;
          }
          return $oPropertyArray;
      }
code: public static function getAttributes($onlyAttributesOfSimpleDatatypes = false)
      {
          $oSelfReflection = new \ReflectionClass(static::$m__sClassName);
          $oPropertyArray = $oSelfReflection->getProperties(
              \ReflectionProperty::IS_PUBLIC |
              \ReflectionProperty::IS_PROTECTED |
              \ReflectionProperty::IS_PRIVATE);
  
          $count = 0;
          while ($count < count($oPropertyArray)) {
              $sAttributeName = $oPropertyArray[$count]->getName();
              if (
                  // TODO generalize attribute prefix (sample "m_-s-", (start 2, length 1) )
                  substr($sAttributeName, 1, 1) != "_" ||
                  substr($sAttributeName, 2, 1) == "_" ||
                  ($onlyAttributesOfSimpleDatatypes && substr($sAttributeName, 2, 1) == "o")
              ) {
                  unset($oPropertyArray[$count]);
              }
              $count++;
          }
          return $oPropertyArray;
      }
code_tokens: public static function getAttributes ( $ onlyAttributesOfSimpleDatatypes = false ) { $ oSelfReflection = new \ ReflectionClass ( static :: $ m__sClassName ) ; $ oPropertyArray = $ oSelfReflection -> getProperties ( \ ReflectionProperty :: IS_PUBLIC | \ ReflectionProperty :: IS_PROTECTED | \ ReflectionProperty :: IS_PRIVATE ) ; $ count = 0 ; while ( $ count < count ( $ oPropertyArray ) ) { $ sAttributeName = $ oPropertyArray [ $ count ] -> getName ( ) ; if ( // TODO generalize attribute prefix (sample "m_-s-", (start 2, length 1) )
   substr ( $ sAttributeName , 1 , 1 ) != "_" || substr ( $ sAttributeName , 2 , 1 ) == "_" || ( $ onlyAttributesOfSimpleDatatypes && substr ( $ sAttributeName , 2 , 1 ) == "o" ) ) { unset ( $ oPropertyArray [ $ count ] ) ; } $ count ++ ; } return $ oPropertyArray ; }
docstring: Returns the attributes of the actual class which are relevant for the
  webfile definition.
  
  @param bool $onlyAttributesOfSimpleDatatypes
  @return array array with attributes
docstring_tokens: Returns the attributes of the actual class which are relevant for the webfile definition .