I am trying to understand the following code. In the function below. Buyer is a class and , and it has a method find_all that we are calling right?
and then $this->sites is a variable, correct, to which we are assingning the value returned by method find_all, correct? But if I print
$this->sites, it prints an array? something like this
"Array ( [0] => Buyer Object ( [table_name] => buyers [database_connection_name] => [all_fields] => Array ( ) [integrity_errors] => "
*@var array
*/
protected $sites;
protected $site;
public $buyer_carrier_weight = Array();
public function mobilebuyers()
{
$this->sites = Buyer::find_all("Buyer");
// $this->render("list_buyers");
}
and then $this->sites is a variable, correct, to which we are assingning the value returned by method find_all, correct? But if I print
$this->sites, it prints an array? something like this
"Array ( [0] => Buyer Object ( [table_name] => buyers [database_connection_name] => [all_fields] => Array ( ) [integrity_errors] => "
*@var array
*/
protected $sites;
protected $site;
public $buyer_carrier_weight = Array();
public function mobilebuyers()
{
$this->sites = Buyer::find_all("Buyer");
// $this->render("list_buyers");
}