This commit is contained in:
2024-05-21 11:53:40 +03:00
parent 8f07ea82bc
commit 8254407aae
12 changed files with 122 additions and 79 deletions

View File

@ -1,34 +1,41 @@
<?php
/*$flag = false;
namespace src;
use AdditionallyInfo;
use Contacts;
use FullName;
use Information;
require_once "src/Information.php";
require_once "src/FullName.php";
require_once "src/Contacts.php";
require_once "src/AdditionallyInfo.php";
$surname = $_REQUEST["surname"];
$name = $_REQUEST["name"];
$patronymic = $_REQUEST["patronymic"];
$fullName = new fullName($surname, $name, $patronymic);
$fullName = new FullName($surname, $name, $patronymic);
$fullName = $fullName->getFoolName();
$gender = $_REQUEST["gender"];
$DateOfBirth = $_REQUEST["DateOfBirth"];
$dateOfBirth = $_REQUEST["dateOfBirth"];
$additionallyInfo = new additionallyInfo($DateOfBirth, $gender);
$additionallyInfo = new AdditionallyInfo($dateOfBirth, $gender);
$additionallyInfo = $additionallyInfo->getAdditionallyInfo();
$countryCode = $_REQUEST["countryCode"];
$phoneNumber = $_REQUEST["phoneNumber"];
$email = $_REQUEST["email"];
$contacts = new contacts($countryCode, $phoneNumber, $email);
$contacts = new Contacts($countryCode, $phoneNumber, $email);
$contacts = $contacts->getContacts();
$p1 = new Information($fullName, $additionallyInfo, $contacts);
$fullInformation = $p1->getFullInformation();
$fullInformation = new Information($fullName, $additionallyInfo, $contacts);
$fullInformation = $fullInformation->getFullInformation();
$flag = isFullInfo($fullName, $additionallyInfo, $contacts);
if($flag) {
$file = fopen("Information.txt", "a");
fwrite($file, $fullInformation);
fclose($file);
} // if
*/
$file = fopen("Information.txt", "a");
fwrite($file, $fullInformation);
fclose($file);
require "table.php";