SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot ninjayong's Avatar
    Join Date
    May 2006
    Location
    Holland
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What's this mean ->

    I understand basic PHP and am in a rush to modify a little bit of code for an existing shopping cart. The problem I'm facing is that I don't know what this means ->

    I've tried searching but obviously no luck and I don't know what it's referred to as. Here's an example of a line of code I'm looking at.

    $order->storeTrans($transData);

    What does it mean ??

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ah - that's OOP PHP.

    If you're only a beginner it's way out of your depth, however if you're more experienced you may want to look at:
    http://uk3.php.net/oop5

    It's a completely different and advanced area of PHP.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    But as to the function:
    PHP Code:
    $order->storeTrans($transData); 
    you need to look at where $order is defined. It might look something like:
    PHP Code:
    $order = new order
    You'll need to look through the include files until you find code which looks like this:
    PHP Code:
    Class order
    and within the braces, you need to look for a function storeTrans(). That's the function.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  5. #5
    SitePoint Zealot ninjayong's Avatar
    Join Date
    May 2006
    Location
    Holland
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aaaah so that's what it is !! Thanks to both of you for the link to the relevant PHP chapter. I'm familiar with OOP so that's really helped


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •