public static function cleanFields($fields)
    {
        $fields = parent::cleanFields($fields);
        if (('*' !== array_get($fields, 0)) && !in_array('private', $fields)) {
            $fields[] = 'private';
        }

        return $fields;
    }
public static function cleanFields($fields)
    {
        $fields = parent::cleanFields($fields);
        if (('*' !== array_get($fields, 0)) && !in_array('private', $fields)) {
            $fields[] = 'private';
        }

        return $fields;
    }
public static function cleanFields ( $ fields ) { $ fields = parent :: cleanFields ( $ fields ) ; if ( ( '*' !== array_get ( $ fields , 0 ) ) && ! in_array ( 'private' , $ fields ) ) { $ fields [ ] = 'private' ; } return $ fields ; }
Removes unwanted fields from field list if supplied.

@param mixed $fields

@return array
Removes unwanted fields from field list if supplied .