Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:20:28+00:00 2026-06-15T22:20:28+00:00

In Google documentation ( https://developers.google.com/drive/v2/reference/files/insert ) has the following code snippets: $file = new

  • 0

In Google documentation ( https://developers.google.com/drive/v2/reference/files/insert ) has the following code snippets:

$file = new Google_DriveFile();
  ...
$parent = new ParentReference();

I am getting error in Fatal error: Class 'ParentReference' not found. I grepped the google-api-php-client for ParentReference.

lib: grep -R ParentReference ./ | grep class
.../Google_DriveService.php:class Google_ParentReference extends Google_Model {

It is seems that there are some prefix “Google_” added and ParentReference is renamed to *Google_ParentReference* .

My conclusion is right? Is there something else I couldn’t understand?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:20:30+00:00Added an answer on June 15, 2026 at 10:20 pm

    Yes, you’re right.

    If you’ll download latest SDK for PHP you can check that almost all classes have the prefix Google_.

    For example, in folder \src\contrib\Google_DriveService.php you will find the definition of Google_ParentReference.

    Also check Parents: insert (Google Drive SDK).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there is a method files/insert (https://developers.google.com/drive/v2/reference/files/insert), but the documentation doesn't specify where
https://developers.google.com/drive/v2/reference/children/list I use this php function taken from the documentation /** * Print files
I follow the documentation there: https://developers.google.com/drive/v2/reference/children/list I would like to set a query in
https://developers.google.com/maps/documentation/javascript/libraries In the documentation,its given that java-script code for maps API can be loaded
I was using geocode service of Google Maps Version 2 the Javascript API. https://developers.google.com/maps/documentation/javascript/v2/reference
I'm trying to do this following the API documentation there: https://developers.google.com/google-apps/documents-list/#adding_a_resource_to_a_collection With the Zend
Per the following documentation: https://developers.google.com/chrome/mobile/docs/user-agent Here is Chrome for iOS UA String: Mozilla/5.0 (iPhone;
I am actually following the HtmlService documentation (https://developers.google.com/apps-script/html_service) in creating a form. I notice
I have something very similar to this example: https://developers.google.com/maps/documentation/javascript/examples/directions-simple All I am trying to
I had this example : https://google-developers.appspot.com/maps/documentation/javascript/examples/directions-panel and I was wondering how to set routes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.