private function stockLookup() { $equity = new EquityLiveBalanceModel($this->connection); $equity->whichDB($this->config->get('TRANS_DB')); $equity->memnum($this->id); if ($equity->load()) { return array($equity->payments(), $equity->startdate()); } else { return array(0, date('Y-m-d')); } }