public function __get($key) { switch ($key) { case 'str': return StringHelper::get_instance(); break; case 'input': return Input::get_instance(); break; case 'recaptcha': return Recaptcha::get_instance(); break; } }
/** * Validate ReCaptcha * * @return bool */ public static function validate_recaptcha() { return Recaptcha::get_instance()->validate(); }