{"issue":{"pull_request":{"diff_url":"https://github.com/joomla/joomla-platform/pull/496.diff","html_url":"https://github.com/joomla/joomla-platform/pull/496","patch_url":"https://github.com/joomla/joomla-platform/pull/496.patch"},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/8f3be2c1d014f124f134c6b32e38b123?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8f3be2c1d014f124f134c6b32e38b123","url":"https://api.github.com/users/chdemko","login":"chdemko","id":834574},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-09T06:34:40Z","comments":5,"closed_at":null,"url":"https://api.github.com/repos/joomla/joomla-platform/issues/496","body":"The purpose of these modifications is to bring two new features to the `JForm` library and two new methods to the library `JString` as a side effect:\r\n\r\n * the possibility to prefix field and rule classes by any string (currently, it's only `'J'`). To use the field `FooFormFieldBar` in an xml, simply put `type=\"foo.bar\"`\r\n * the possibility to guess the field type using the class name.\r\n  * A class named `JFormFieldBar` would have his type guessed as `'Bar'`\r\n  * A class named `JFormFieldModal_Bar` would have his type guessed as `'Modal_Bar'`\r\n  * A class named `FooFormFieldBar` would have his type guessed as `'FooBar'`\r\n  * A class named `FooFormFieldModal_Bar` would have his type guessed as `'FooModal_Bar'`\r\n * the method `JString::splitCamelCase` allow to split a string using a camel case notation\r\n  * `\"FooBarABCDef\"`            becomes  `array(\"Foo\", \"Bar\", \"ABC\", \"Def\")`\r\n  * `\"JFooBar\"`                 becomes  `array(\"J\", \"Foo\", \"Bar\")`\r\n  * `\"J001FooBar002\"`           becomes  `array(\"J001\", \"Foo\", \"Bar002\")`\r\n  * `\"abcDef\"`                  becomes  `array(\"abc\", \"Def\")`\r\n  * `\"abc_defGhi_Jkl\"`          becomes  `array(\"abc_def\", \"Ghi_Jkl\")`\r\n  * `\"ThisIsA_NASAAstronaut\"`   becomes  `array(\"This\", \"Is\", \"A_NASA\", \"Astronaut\")`\r\n  * `\"JohnFitzgerald_Kennedy\"`  becomes  `array(\"John\", \"Fitzgerald_Kennedy\")`\r\n * the method `JString::ucfirstEach` allow to ucfirst all words of a string\r\n  * `JString::ucfirstEach('dr jekill and mister hyde')` becomes `'Dr Jekill And Mister Hyde'`\r\n  * `JString::ucfirstEach('dr jekill and mister hyde',' ', '_')` becomes `'Dr_Jekill_And_Mister_Hyde'`\r\n  * `JString::ucfirstEach('dr jekill and mister hyde',' ', '')` becomes `'DrJekillAndMisterHyde'`\r\n \r\nLast, there was an error in the `JForm` library: the `array_unshift` in the `JFormHelper::loadClass` method only allow to look in the first half of paths.","html_url":"https://github.com/joomla/joomla-platform/issues/496","title":"Adding features to the JForm library + correcting some errors","number":496,"id":2172745,"created_at":"2011-11-08T10:14:18Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/679908c699f06435eb3c407f0259bab1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"679908c699f06435eb3c407f0259bab1","url":"https://api.github.com/users/joomla-jenkins","login":"joomla-jenkins","id":929228},"updated_at":"2011-11-09T06:34:40Z","url":"https://api.github.com/repos/joomla/joomla-platform/issues/comments/2678027","body":"Build triggered by changes to the base.\n\nThe tests completed but there was a problem parsing the report.\nUnit testing complete.  There were 0 failures and 0 errors from 1695 tests and 10579 assertions.\nCheckstyle analysis reported 441 warnings and 0 errors.\n","id":2678027,"created_at":"2011-11-09T06:34:40Z"}}