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 8210523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:05:48+00:00 2026-06-07T10:05:48+00:00

include_once ‘showData.php’; class dbInsertion { function db_insertShow($showData_obj) {} $showData is a class object how

  • 0
include_once 'showData.php'; 
class dbInsertion { 
function db_insertShow($showData_obj)
{} 

$showData is a class object how can i get its data members in this db_insertShow function

here is the class showdata

class ShowData {
  var $show_id;
  var $type_id;
  var $priority;
  var $name;
  var $sDescription;
  var $lDescription;
  var $bookinguntil;
  var $runtime;
  var $matinee;
  var $evening;
  var $pricefrom;
}
  • 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-07T10:05:50+00:00Added an answer on June 7, 2026 at 10:05 am

    Inside your class you can retrieve the members like this:

    class dbInsertion { 
        function db_insertShow($showData_obj)
        {
            $show_id = $showData_obj->show_id;
            ...
        } 
    }
    

    Also you might want to have a look at the concept of getters and setters. Essentially they are just methods that are used to retrieve and set members. The bonus you get out of using getters and setters is that you can do extra stuff that might be required when retrieving the member. For this to make sense you should define your members as private though.

    class ShowData {
        private $show_id;
    
        public function setShow_id($show_id) {
            $this->show_id = $show_id;
        }
    
        public function getShow_id() {
            return $this->show_id;
        }
    }
    

    Then, instead of the above example, you can access the members like this:

    class dbInsertion { 
        function db_insertShow($showData_obj)
        {
            $show_id = $showData_obj->getShow_id();
            ...
        } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the following error messages: Warning: include_once(Zend\Db.php) [function.include-once]: failed to open stream: No
Can someone explain to me what the difference between include_once 'classb.php' class A {
I have the following test case: include_once('../Logger.php'); class LoggerTest extends PHPUnit_Framework_TestCase { public function
hoping you can help me out with this question! Index.php include_once 'files.class.php'; $file_object =
To throw an exception we need to include a CustomException class. include_once(CustomException.class.php); Ok. On
//$GLOBAL_includesPath = http://localhost/smthing/; <? include_once $GLOBAL_includesPath.'global_menu.php'; ?> error: Warning: include_once() [function.include-once]: http:// wrapper is
I understand preg_match_all can get me this information. I need include(xxxx); include_once(xxxx); require(xxxx); require_once(xxxx);
I wrote this code: function get_feed(){ // Get RSS Feed(s) include_once(ABSPATH . WPINC .
I am trying to use this: include_once(PoliticalForum/StoredProcedure/User/number_login_attempts.php); Warning: include_once(../../untitled/sanitize_string.php) [function.include-once]: failed to open stream:
I am having the following problem: Warning: include_once() [function.include]: Failed opening 'Mail_Mime/mime.php' for inclusion

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.