public function getComposite($operation)
    {
        switch ($operation)
        {
            case OP_VIEWS:
                return $this->getTripodViews();
            case OP_TABLES:
                return $this->getTripodTables();
            case OP_SEARCH:
                return $this->getSearchIndexer();
            default:
                throw new \Tripod\Exceptions\Exception("Undefined operation '$operation' requested");
        }
    }
public function getComposite($operation)
    {
        switch ($operation)
        {
            case OP_VIEWS:
                return $this->getTripodViews();
            case OP_TABLES:
                return $this->getTripodTables();
            case OP_SEARCH:
                return $this->getSearchIndexer();
            default:
                throw new \Tripod\Exceptions\Exception("Undefined operation '$operation' requested");
        }
    }
public function getComposite ( $ operation ) { switch ( $ operation ) { case OP_VIEWS : return $ this -> getTripodViews ( ) ; case OP_TABLES : return $ this -> getTripodTables ( ) ; case OP_SEARCH : return $ this -> getSearchIndexer ( ) ; default : throw new \ Tripod \ Exceptions \ Exception ( "Undefined operation '$operation' requested" ) ; } }
Returns the composite that can perform the supported operation
@param $operation string must be either OP_VIEWS, OP_TABLES or OP_SEARCH
@return \Tripod\Mongo\Composites\IComposite
@throws \Tripod\Exceptions\Exception when an unsupported operation is requested
Returns the composite that can perform the supported operation