PHP User::setSex Examples

PHP User::setSex - 3 examples found. These are the top rated real world PHP examples of User::setSex extracted from open source projects. You can rate examples to help us improve the quality of examples.
Example #1
0
$dob = $_POST['inputDate'];
$phone = $_POST['Phone'];
$email = $_POST['Email'];
$sex = $_POST['radioSex'];
$user = new User();
$user->setUsername($username);
$user->setPassword($password);
$user->setFname($f_name);
$user->setLname($l_name);
$user->setNick($nick);
$user->setCountry($country);
$user->setCity($city);
$user->setAddress($address);
$user->setPhone($phone);
$user->setEmail($email);
$user->setSex($sex);
$user->setBday($dob);
$today = date("y-m-d");
$user->setJoinedOn($today);
$userlogic = new UserLogic();
$isExist = $userlogic->InsertUser($user);
if ($isExist == 13) {
    echo 'Username Already Exists. Plz try something else.';
} else {
    if ($isExist == 1) {
        ?>
	
		<script type="text/javascript"> 
				updateDiv("verify.php","content","get"); 
        </script>
		
Example #2
0
    $param = array('method' => 'fql.query', 'query' => $fql, 'callback' => '');
    $fqlResult = $facebook->api($param);
} catch (Exception $o) {
    d($o);
}
require_once 'Value_Object/User.php';
require_once 'Logic/UserLogic.php';
$user = new User();
$ulogic = new UserLogic();
//$user->setFbId($fbme['id']);
if ($fbme) {
    $user->setFbId($fbme['id']);
    $user->setFname($fbme['first_name']);
    $user->setLname($fbme['last_name']);
    $user->setEmail($fbme['email']);
    $user->setSex($fbme['gender']);
    $address = $userInfo[0];
    $address = $address['current_location'];
    $user->setAddress('Not specified.');
    $user->setCountry($address['country']);
    $datte = $fbme['birthday'];
    $user->setBday(date("Y-m-d", $datte));
    $user->setCity($address['city']);
    $user->setUsername($_POST['uid']);
    $user->setPassword($_POST['pass']);
    $today = date("Y-m-d");
    $user->setJoinedOn($today);
    $path = $fqlResult[0];
    $user->setPicPath($path['pic_square']);
    $user = $ulogic->fbMap($user);
    echo "After ";
Example #3
0
File: user.php Project: Zocoo/zune
function setUser($user)
{
    $userw = new User();
    $userw->setId($user->id);
    $userw->setName($user->name);
    $userw->setPhone($user->phone);
    $userw->setEmail($user->email);
    $userw->setAddress($user->address);
    $userw->setPassword($user->password);
    $userw->setSex($user->sex);
    $userw->setAge($user->age);
    $userw->setCode($user->code);
    $userw->setCreatedate($user->createdate);
    $userw->setUpdatedate($user->updatedate);
    $userw->setDr($user->dr);
    return $userw;
}