queryClone example

if ($this->_queryId === null) {
            return $this->_execute($params);
        }

        /* * Do the same thing, but with query profiler * management before and after the execute. */
        $prof = $this->_adapter->getProfiler();
        $qp = $prof->getQueryProfile($this->_queryId);
        if ($qp->hasEnded()) {
            $this->_queryId = $prof->queryClone($qp);
            $qp = $prof->getQueryProfile($this->_queryId);
        }
        if ($params !== null) {
            $qp->bindParams($params);
        } else {
            $qp->bindParams($this->_bindParam);
        }
        $qp->start($this->_queryId);

        $retval = $this->_execute($params);

        
Home | Imprint | This part of the site doesn't use cookies.