public function process() { $this->quote->clearUID(); if (!empty($_POST)) { if ($this->quote->validate($_POST)) { return $this->parseResult($this->quote->post()); } } }
public function process($data) { $this->quote->clearUID(); if (!empty($data)) { if ($this->quote->validate($_POST)) { $this->parseResult($this->quote->post()); return true; } } return false; }
public function process($data) { if (!empty($_POST)) { if ($this->quote->validate($data)) { $this->quote['completed'] = 1; $this->quote->post(); $this->quote->clearUID(); return true; } } return false; }