src/MongoMinify/Collection.php
public function getShort($full)
    {
        if (strpos($full, '*') !== false) {
            return $this->schema_index[substr($full, 0, -2)] . '.*';
        }
        if (isset($this->schema[$full]['short'])) {
            return $this->schema[$full]['short'];
        }
        return $full;
    }
public function getShort($full)
    {
        if (strpos($full, '*') !== false) {
            return $this->schema_index[substr($full, 0, -2)] . '.*';
        }
        if (isset($this->schema[$full]['short'])) {
            return $this->schema[$full]['short'];
        }
        return $full;
    }
public function getShort ( $ full ) { if ( strpos ( $ full , '*' ) !== false ) { return $ this -> schema_index [ substr ( $ full , 0 , - 2 ) ] . '.*' ; } if ( isset ( $ this -> schema [ $ full ] [ 'short' ] ) ) { return $ this -> schema [ $ full ] [ 'short' ] ; } return $ full ; }
Get short definitions based on full key
Get short definitions based on full key