public function trans_commit() { if (!$this->trans_enabled or $this->_trans_depth === 0) { return FALSE; } elseif ($this->_trans_depth > 1 or $this->_trans_commit()) { $this->_trans_depth--; return TRUE; } return FALSE; }