protected function setupDefaults()
    {
        $this->addHandler('select', new SelectQueryHandler());
        $this->addHandler('search', new SearchQueryHandler());
        $this->addHandler('random', new RandomQueryHandler());
        $this->addHandler('first', new FirstQueryHandler());
        $this->addHandler('latest', new LatestQueryHandler());
        $this->addHandler('nativesearch', new NativeSearchHandler());
        $this->addHandler('namedselect', new IdentifiedSelectHandler());

        $this->addDirectiveHandler('getquery', new GetQueryDirective());
        $this->addDirectiveHandler('hydrate', new HydrateDirective());
        $this->addDirectiveHandler('limit', new LimitDirective());
        $this->addDirectiveHandler('order', new OrderDirective());
        $this->addDirectiveHandler('page', new OffsetDirective());
        $this->addDirectiveHandler('paging', new PagingDirective());
        $this->addDirectiveHandler('printquery', new PrintQueryDirective());
        $this->addDirectiveHandler('returnsingle', new ReturnSingleDirective());
    }
protected function setupDefaults()
    {
        $this->addHandler('select', new SelectQueryHandler());
        $this->addHandler('search', new SearchQueryHandler());
        $this->addHandler('random', new RandomQueryHandler());
        $this->addHandler('first', new FirstQueryHandler());
        $this->addHandler('latest', new LatestQueryHandler());
        $this->addHandler('nativesearch', new NativeSearchHandler());
        $this->addHandler('namedselect', new IdentifiedSelectHandler());

        $this->addDirectiveHandler('getquery', new GetQueryDirective());
        $this->addDirectiveHandler('hydrate', new HydrateDirective());
        $this->addDirectiveHandler('limit', new LimitDirective());
        $this->addDirectiveHandler('order', new OrderDirective());
        $this->addDirectiveHandler('page', new OffsetDirective());
        $this->addDirectiveHandler('paging', new PagingDirective());
        $this->addDirectiveHandler('printquery', new PrintQueryDirective());
        $this->addDirectiveHandler('returnsingle', new ReturnSingleDirective());
    }
protected function setupDefaults ( ) { $ this -> addHandler ( 'select' , new SelectQueryHandler ( ) ) ; $ this -> addHandler ( 'search' , new SearchQueryHandler ( ) ) ; $ this -> addHandler ( 'random' , new RandomQueryHandler ( ) ) ; $ this -> addHandler ( 'first' , new FirstQueryHandler ( ) ) ; $ this -> addHandler ( 'latest' , new LatestQueryHandler ( ) ) ; $ this -> addHandler ( 'nativesearch' , new NativeSearchHandler ( ) ) ; $ this -> addHandler ( 'namedselect' , new IdentifiedSelectHandler ( ) ) ; $ this -> addDirectiveHandler ( 'getquery' , new GetQueryDirective ( ) ) ; $ this -> addDirectiveHandler ( 'hydrate' , new HydrateDirective ( ) ) ; $ this -> addDirectiveHandler ( 'limit' , new LimitDirective ( ) ) ; $ this -> addDirectiveHandler ( 'order' , new OrderDirective ( ) ) ; $ this -> addDirectiveHandler ( 'page' , new OffsetDirective ( ) ) ; $ this -> addDirectiveHandler ( 'paging' , new PagingDirective ( ) ) ; $ this -> addDirectiveHandler ( 'printquery' , new PrintQueryDirective ( ) ) ; $ this -> addDirectiveHandler ( 'returnsingle' , new ReturnSingleDirective ( ) ) ; }
Internal method to initialise the default handlers.
Internal method to initialise the default handlers .