It's a diode... like any other diode, although with a transparent package. Sometimes the external package material is tuned for a specific spectrum, but EVERY PN junction exhibits a photo electric effect. Light applied to the junction will produce current through it. The photons knock around the free electrons. Any LED will exhibit a photo diode effect. (Just put one on a scope and shine a light at it) Basic semi conductor physics. Also little known, is all semi conductor junction emit some form of light =) One of the reasons why they come in opaque packages.