I've seen people use this piece of code and I'm trying to understand what it does because I don't see it in any of the codeigniter documenation or in the source code for the database class.
$this->db->ar_orderby
This is an array that holds order by columns..
There should be no reason to use this property directly. Instead call $this->db->order_by('column') which appends to the array automatically.
system/database/DB_active_rec.php Line 42CI_DB_active_record::order_by Line 856 CI_DB_active_record::_compile_select Line 1781You mean
http://phpxref.com/xref/codeigniter/system/drivers/DB_active_record.php.source.html#l781
It allows you to specify the order by.
$thisis a special variable meant to refere a class and the->means sort of get/use in this case, I would presumedbis actually a variable to hold database resource and as a variable was declared as$dbbut if you are using$this->you can't use the$sign... I started learning OOP just about yesterday, and that is all that I know :)