This is a really good link describing garden solar light electronics;

http://www.talkingelectronics.com/projects/SolarLight/SolarLight.html

The electronics may be slightly more sophisticated than originally thought.