protected function parseContenttypes()
    {
        $contentTypes = $this->config->get('contenttypes');
        foreach ($contentTypes as $type => $values) {
            $sort = $values['sort'] ?: '-datepublish';
            $this->orderBys[$type] = $sort;
            if (isset($values['singular_slug'])) {
                $this->orderBys[$values['singular_slug']] = $sort;
            }
        }
    }
protected function parseContenttypes()
    {
        $contentTypes = $this->config->get('contenttypes');
        foreach ($contentTypes as $type => $values) {
            $sort = $values['sort'] ?: '-datepublish';
            $this->orderBys[$type] = $sort;
            if (isset($values['singular_slug'])) {
                $this->orderBys[$values['singular_slug']] = $sort;
            }
        }
    }
protected function parseContenttypes ( ) { $ contentTypes = $ this -> config -> get ( 'contenttypes' ) ; foreach ( $ contentTypes as $ type => $ values ) { $ sort = $ values [ 'sort' ] ? : '-datepublish' ; $ this -> orderBys [ $ type ] = $ sort ; if ( isset ( $ values [ 'singular_slug' ] ) ) { $ this -> orderBys [ $ values [ 'singular_slug' ] ] = $ sort ; } } }
Iterates over the main config and sets up what the default ordering should be
Iterates over the main config and sets up what the default ordering should be