Sha256: f3933a423f06954d3763f680f167bc4e0c1576802a8e529e92a41ab667d11ffb
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
<?php // // // Example: // $c = new ContactForm(); // // $emailer = new ContactFormEmailHandler(); // $emailer->to('jason@magiclamp.co.uk')->from('{email}'); // $c->add_handler($emailer); // // $csv = new ContactFormCSVHandler(); // $csv->path('/foo/bar/baz.csv')->fields('forename', 'surname', 'email'); // $c->add_handler($csv); // class ContactForm { } interface ContactFormHandler { public function handle(ContactForm $form); } class ContactFormEmailHandler { private $to; private $from; public function handle(ContactForm $form) { } } class ContactFormCSVHandler { private $path; private $fields = array(); public function handle(ContactForm $form) { } } ?>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
site-skel-0.1.4 | layouts/php/_offsite/lib/common/contact_form.php |