linking90 Posted May 12, 2009 Share Posted May 12, 2009 Hi, My name is cathy and I was hoping someone would help me out in this question using PHP. The question is in C# BUT NEEDS TO BE SOLVED IN PHP. Thanks!!! QUESTION: C# (or another language used in web applications such as PHP) Using C# (or another language) and this provided Employee class: /// <summary> /// The object responsible for containing all information about an Employee /// </summary> public class Employee { private string name; private string emailAddress; private DateTime birthdate; private DateTime startdate; private DateTime enddate; private int positionid; private int departmentid; /// <summary> /// Instantiating an Employee object when we know all relevant information /// </summary> /// <param name="name">Name of the employee</param> /// <param name="emailAddress">Employee's e-mail address</param> /// <param name="birthDate">Date of birth</param> /// <param name="startDate">The day the employee started with the company</param> /// <param name="endDate">null if they are still with the company</param> public Employee(string name, string emailAddress, DateTime birthDate, DateTime startDate, DateTime endDate) { this.name = name; this.birthdate = birthDate; this.startdate = startDate; this.enddate = endDate; this.emailAddress = emailAddress; } } Write a static function which returns a list of Employee objects. Populate this list from an Employee table which exists on a database and server of your choosing. Assume an arbitrary connection string and the following schema: Employee Name varchar(50) EmailAddress varchar(250) Birthdate datetime Startdate datetime Enddate datetime Quote Link to comment https://forums.phpfreaks.com/topic/157868-php-solution-for-employee-class/ Share on other sites More sharing options...
Ken2k7 Posted May 12, 2009 Share Posted May 12, 2009 Requests should be made in Freelance forum. Quote Link to comment https://forums.phpfreaks.com/topic/157868-php-solution-for-employee-class/#findComment-832714 Share on other sites More sharing options...
allworknoplay Posted May 12, 2009 Share Posted May 12, 2009 Why should I do your homework for you!!! Quote Link to comment https://forums.phpfreaks.com/topic/157868-php-solution-for-employee-class/#findComment-832716 Share on other sites More sharing options...
Maq Posted May 12, 2009 Share Posted May 12, 2009 Please do not make posts requesting code be made for you, especially when you haven't even made any attempt what so ever. More over, this is obviously HW, and doing other's HW on these forums is despised, if you are in need of specific help or have a specific question, we'll be sure to help, other than that, go read some tutorials and try it yourself. Quote Link to comment https://forums.phpfreaks.com/topic/157868-php-solution-for-employee-class/#findComment-832722 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.