function getProductRows() { $return_array = array(); if ($this->id != "") { $purchaseorderLine = new PurchaseOrderLine(); $return_array = $purchaseorderLine->get_full_list("id", "purchaseorderid='" . $this->id . "'"); } return $return_array; }