Source of file ContactFormSpamProtection.php
Size: 0,765 Bytes - Last Modified: 2021-12-23T10:29:02+00:00
/var/www/docs.ssmods.com/process/src/code/ContactFormSpamProtection.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | <?php class ContactFormSpamProtection extends Object { protected $components; protected $proxy; public function __construct() { $this->components = ArrayList::create(array()); foreach(func_get_args() as $arg) { if($arg instanceof ContactFormSpamProtector) { $this->add($arg); } } return $this; } public function getByType($type) { foreach($this->components as $c) { if($c->class == $type) { return $c; } } } public function add(ContactFormSpamProtector $spam) { $spam->setContainer($this); $this->components->push($spam); return $this; } public function getComponents() { return $this->components; } public function setProxy(ContactForm $f) { $this->proxy = $f; return $this; } } |