PLUG December Meeting Ideas?
Brendan Curran
brendan.curran at gmail.com
Mon Dec 1 17:03:26 MST 2008
I for one would love a presentation on this topic. Specifically I
think plenty of people could benefit from this who are entering the
PHP - OO space from a java or C++ background. Some people out there
don't even believe PHP has reached OO maturity sufficient for an MVC
platform. Anyone care to prove it beyond a reasonable doubt?
Regards,
Brendan
On Dec 1, 2008, at 11:59 AM, "William Attwood" <wattwood at gmail.com>
wrote:
> We could discuss PHP 5 and Object Oriented Programming in an MVC
> framework,
> where efficient programming is done by passing objects through the
> system.
> ex:
>
> public function getCustomerByCustomerID(Customer_Model $customer){
> If(isset($customer->getCustomerID()){
> $this->db->where('customerID', $customer->getCustomerID);
> $this->db->get('customers');
> if($this->db->result->count() == 0){
> Throw new Exception("Invalid Customer ID");
> }else{
> foreach($this->db->result as $customerRecord){
> $customer->setCustomerFirstName($customerRecord-
> >firstName);
> $customer->setCustomerLastName($customerRecord-
> >lastName);
> return $customer;
> }
> }
> }else{
> Throw new Exception("Invalid Customer ID");
> }
> }
>
> This is of course something that a lot of us are familiar with, but
> there
> may be others that do not understand Design Patterns, PHP Objects
> and Object
> Oriented Programming.
>
> Thoughts?
> -Will
>
> On Mon, Dec 1, 2008 at 12:44 PM, Alan Young
> <alansyoungiii at gmail.com> wrote:
>
>> On Sun, Nov 30, 2008 at 10:26, Ryan Simpkins <plug at ryansimpkins.com>
>> wrote:
>>> P.S. If no one volunteers, I will be giving the following
>>> presentation:
>> "How
>>> Open Source is like the Rocky Horror Picture Show." During which
>>> we will
>> watch
>>> the movie in an order determined by benevolent dictator vote. Please
>> spare me
>>> from serving any meatloaf. Oooo. Ka-ching!
>>
>> Hey! I just watched that (again) over the weekend!
>>
>> I'll play Frank-n-furter! Because, hey, he does both Susan Sarandon
>> *and* Barry Bostwick!
>> --
>> Alan
>> Shelley Winters - "Whenever you want to marry someone, go have lunch
>> with his ex-wife."
>>
>> /*
>> PLUG: http://plug.org, #utah on irc.freenode.net
>> Unsubscribe: http://plug.org/mailman/options/plug
>> Don't fear the penguin.
>> */
>>
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
More information about the PLUG
mailing list