/** * Gets the user Family information which is as follows * + family Type (joint, nucleus) * + family type (middleClass, higher class etc) * @param $userId * @return array * */ public function getUserFamilyInformation($userId) { $Object = new Family(); $result = $Object->getUserFamilyBackground($userId); return $result; }
private function getFamilyBackground() { $Object = new Family(); $result = $Object->getUserFamilyBackground($this->userId); if ($result[0]['Status'] == "ok") { $this->familyBackground = $result[1]['StatusId']; return true; } return false; }