protected function setUser(array $userData, & $user = null)
    {
        // Generic birthdate parsing
        $user->birthday = date('Y-m-d H:i:s', strtotime($user->birthday));

        // If no external user is passed set as current user
        if (isset($user)) {
            $this->user = & $user;
        }
    }
protected function setUser(array $userData, & $user = null)
    {
        // Generic birthdate parsing
        $user->birthday = date('Y-m-d H:i:s', strtotime($user->birthday));

        // If no external user is passed set as current user
        if (isset($user)) {
            $this->user = & $user;
        }
    }
protected function setUser ( array $ userData , & $ user = null ) { // Generic birthdate parsing $ user -> birthday = date ( 'Y-m-d H:i:s' , strtotime ( $ user -> birthday ) ) ; // If no external user is passed set as current user if ( isset ( $ user ) ) { $ this -> user = & $ user ; } }
Fill object User

@param array $userData Answer of social network
@param mixed $user Pointer to user object for filling
Fill object User