I dont understand the this->something("something_els

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
danf_1979
Forum Commoner
Posts: 72
Joined: Sun Feb 20, 2005 9:46 pm

I dont understand the this->something("something_els

Post by danf_1979 »

Uhm, I really dont know how to search for this, because google gives me no answers when I search for "this->("
I have plenty of code that I'm studying that have contructions like this:

Code: Select all

$user = $mod->db->queryOneRecord($sql);
.
.
.
$go_api->uses("isp_web");
.
.
$mod->db->query("update isp_isp_web SET status = '' where doc_id = '$doc_id'");
$mod->system->data["isp_isp_web"][$doc_id]["status"] = "";
.
.
$mod->system->deluser($user_username);
.
.
$this->shortText(&$doc, &$element_val, &$value, $mode);
.
.
Uhm, generically, how is this topic called? What does the "->" stand for?
Why would $mod be repeated so much? Is this like going from a generic system to (->) a especific function or process?
I'm really lost with this kind of coding structure. I just dont understand and dont actually know how it is called.
I'm not the kind of person that reads a manual and then began coding. I began coding and search the manual when I need too, but now I just dont know what to look for.
Many thanks, and happy hollydays
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

http://us3.php.net/class

it's called object oriented programming
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Post Reply