public function getAll($lang = "")
    {
        $orderBy = (isset($_GET['order'])) ? $orderBy = $_GET['order'] : 'customFieldGroupID';
        $orderType = (isset($_GET['type'])) ? $orderType = $_GET['type'] : 'DESC';
        return CustomFieldGroup::orderBy($orderBy, $orderType)->paginate(CustomFieldGroup::$rowsPerPage);
    }
public function getAll($lang = "")
    {
        $orderBy = (isset($_GET['order'])) ? $orderBy = $_GET['order'] : 'customFieldGroupID';
        $orderType = (isset($_GET['type'])) ? $orderType = $_GET['type'] : 'DESC';
        return CustomFieldGroup::orderBy($orderBy, $orderType)->paginate(CustomFieldGroup::$rowsPerPage);
    }
public function getAll ( $ lang = "" ) { $ orderBy = ( isset ( $ _GET [ 'order' ] ) ) ? $ orderBy = $ _GET [ 'order' ] : 'customFieldGroupID' ; $ orderType = ( isset ( $ _GET [ 'type' ] ) ) ? $ orderType = $ _GET [ 'type' ] : 'DESC' ; return CustomFieldGroup :: orderBy ( $ orderBy , $ orderType ) -> paginate ( CustomFieldGroup :: $ rowsPerPage ) ; }
Used to get the list of custom field groups.

@param  string $lang language slug
@return array
Used to get the list of custom field groups .