public function getCollection($col)
    {
        if (mb_orig_strpos($col, '.') === false) {
            $col = $this->dbname . '.' . $col;
        } else {
            $collName = explode('.', $col, 2);
        }

        if (isset($this->collections[$col])) {
            return $this->collections[$col];
        }

        return $this->collections[$col] = new Collection($col, $this);
    }
public function getCollection($col)
    {
        if (mb_orig_strpos($col, '.') === false) {
            $col = $this->dbname . '.' . $col;
        } else {
            $collName = explode('.', $col, 2);
        }

        if (isset($this->collections[$col])) {
            return $this->collections[$col];
        }

        return $this->collections[$col] = new Collection($col, $this);
    }
public function getCollection ( $ col ) { if ( mb_orig_strpos ( $ col , '.' ) === false ) { $ col = $ this -> dbname . '.' . $ col ; } else { $ collName = explode ( '.' , $ col , 2 ) ; } if ( isset ( $ this -> collections [ $ col ] ) ) { return $ this -> collections [ $ col ] ; } return $ this -> collections [ $ col ] = new Collection ( $ col , $ this ) ; }
Returns an object of collection
@param  string $col Collection's name
@return Collection
Returns an object of collection