public function fk($table = NULL) { $key = $this->_model . '_' . $this->_primary_key; if ($table) { if ($table === TRUE) { $table = $this->_table; } return $table . '.' . $key; } return $key; }