private function guessPeerCountMethod()
    {
        $selectMethod = $this->getPeerSelectMethod();
        if ($selectMethod == 'doSelect') {
            $countMethod = 'doCount';
        } elseif (($pos = stripos($selectMethod, 'doSelectJoin')) === 0) {
            $countMethod = 'doCount' . substr($selectMethod, strlen('doSelect'));
        } else {
            // we will fall back to doCount() if we don't understand the join
            // method; however, it probably won't be accurate.  Maybe triggering an error would
            // be appropriate ...
            $countMethod = 'doCount';
        }
        $this->setPeerCountMethod($countMethod);
    }
private function guessPeerCountMethod()
    {
        $selectMethod = $this->getPeerSelectMethod();
        if ($selectMethod == 'doSelect') {
            $countMethod = 'doCount';
        } elseif (($pos = stripos($selectMethod, 'doSelectJoin')) === 0) {
            $countMethod = 'doCount' . substr($selectMethod, strlen('doSelect'));
        } else {
            // we will fall back to doCount() if we don't understand the join
            // method; however, it probably won't be accurate.  Maybe triggering an error would
            // be appropriate ...
            $countMethod = 'doCount';
        }
        $this->setPeerCountMethod($countMethod);
    }
private function guessPeerCountMethod ( ) { $ selectMethod = $ this -> getPeerSelectMethod ( ) ; if ( $ selectMethod == 'doSelect' ) { $ countMethod = 'doCount' ; } elseif ( ( $ pos = stripos ( $ selectMethod , 'doSelectJoin' ) ) === 0 ) { $ countMethod = 'doCount' . substr ( $ selectMethod , strlen ( 'doSelect' ) ) ; } else { // we will fall back to doCount() if we don't understand the join // method; however, it probably won't be accurate.  Maybe triggering an error would // be appropriate ... $ countMethod = 'doCount' ; } $ this -> setPeerCountMethod ( $ countMethod ) ; }
Guesses the Peer count method based on the select method.
Guesses the Peer count method based on the select method .