]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 301967: Some .pm files have invalid POD syntax - Patch by Frédéric Buclin <LpSoli...
authorlpsolit%gmail.com <>
Thu, 28 Jul 2005 02:08:41 +0000 (02:08 +0000)
committerlpsolit%gmail.com <>
Thu, 28 Jul 2005 02:08:41 +0000 (02:08 +0000)
Bugzilla/Auth.pm
Bugzilla/Auth/Login/WWW.pm
Bugzilla/DB.pm
Bugzilla/DB/Mysql.pm
Bugzilla/DB/Schema.pm
Bugzilla/Error.pm
Bugzilla/Flag.pm
Bugzilla/FlagType.pm
Bugzilla/User.pm
Bugzilla/User/Setting.pm
Bugzilla/Util.pm

index 887caf049e24eb457d58240bd1fe4468e322782f..ba32277b770e27fa18ad83d974670290d33c23f3 100644 (file)
@@ -184,8 +184,6 @@ the status codes defined in L<Bugzilla::Constants|Bugzilla::Constants> and
 described below.  The rest of the return values are status code-specific 
 and are explained in the status code descriptions.
 
-=over 4
-
 =item C<AUTH_OK>
 
 Authentication succeeded. The third variable is the userid of the new
@@ -232,8 +230,6 @@ is some text explaining why the account was disabled. This text would
 typically come from the C<disabledtext> field in the C<profiles> table.
 Note that this argument is a string, not a tag.
 
-=back
-
 =item C<current_verify_class>
 
 This scalar gets populated with the full name (eg.,
@@ -269,6 +265,8 @@ by trying cookies as a fallback.
 
 The login interface consists of the following methods:
 
+=over 4
+
 =item C<login>, which takes a C<$type> argument, using constants found in
 C<Bugzilla::Constants>.
 
@@ -281,8 +279,6 @@ login method to prompt the user for this data.
 
 The constants accepted by C<login> include the following:
 
-=over 4
-
 =item C<LOGIN_OPTIONAL>
 
 A login is never required to access this data. Attempting to login is
@@ -299,14 +295,10 @@ I<requirelogin> parameter.
 
 A login is always required to access this data.
 
-=back
-
 =item C<logout>, which takes a C<Bugzilla::User> argument for the user
 being logged out, and an C<$option> argument. Possible values for
 C<$option> include:
 
-=over 4
-
 =item C<LOGOUT_CURRENT>
 
 Log out the user and invalidate his currently registered session.
index f54e5760bd210914ed13b42407fb564f00b7c277..f4bb102b1c2c4d810a8e7a33feae54695c8934b0 100644 (file)
@@ -104,10 +104,12 @@ Bugzilla::Auth::Login::WWW - WWW login information gathering module
 
 =head1 METHODS
 
+=over
+
 =item C<login>
 
 Passes C<login> calls to each class defined in the param C<user_info_class>
 and returns a C<Bugzilla::User> object from the first one that successfully
 gathers user login information.
 
-
+=back
index 76e090d6ca55a1f7ee9af9c2f8bb11236128f6ec..153c0a65151291aee448797b05b04f0f3af8ecf3 100644 (file)
@@ -834,7 +834,9 @@ sub _bz_init_schema_storage {
  Params:      none
  Returns:     A C<Bugzilla::DB::Schema> object representing the database
               as it exists on the disk.
+
 =cut
+
 sub _bz_real_schema {
     my ($self) = @_;
     return $self->{private_real_schema} if exists $self->{private_real_schema};
@@ -851,7 +853,6 @@ sub _bz_real_schema {
     return $self->{private_real_schema};
 }
 
-
 =item C<_bz_store_real_schema()>
 
  Description: Stores the _bz_real_schema structures in the database
@@ -862,7 +863,12 @@ sub _bz_real_schema {
 
  Precondition: $self->{_bz_real_schema} must exist.
 
+=back
+
+=end private
+
 =cut
+
 sub _bz_store_real_schema {
     my ($self) = @_;
 
@@ -889,9 +895,6 @@ sub _bz_store_real_schema {
 1;
 
 __END__
-=back
-
-=end private
 
 =head1 NAME
 
@@ -911,7 +914,7 @@ Bugzilla::DB - Database access routines, using L<DBI>
 
   # Execute the query
   $sth->execute;
-  
+
   # Get the results
   my @result = $sth->fetchrow_array;
 
@@ -981,6 +984,9 @@ Bugzilla::DB module, this would be "Mysql." For PostgreSQL it would be "Pg."
 
 The minimum version of the DBD module that we require for this database.
 
+=back
+
+
 =head1 CONNECTION
 
 A new database handle to the required database can be created using this
@@ -1037,6 +1043,7 @@ should not be called from anywhere else.
 
 =back
 
+
 =head1 ABSTRACT METHODS
 
 Note: Methods which can be implemented generically for all DBs are implemented in
@@ -1217,14 +1224,15 @@ formatted SQL command have prefix C<sql_>. All other methods have prefix C<bz_>.
               back). False (0) or no param if the operation succeeded.
  Returns:     none
 
+=back
+
+
 =head1 IMPLEMENTED METHODS
 
 These methods are implemented in Bugzilla::DB, and only need
 to be implemented in subclasses if you need to override them for 
 database-compatibility reasons.
 
-=over 4
-
 =head2 General Information Methods
 
 These methods return information about data in the database.
@@ -1243,6 +1251,8 @@ These methods return information about data in the database.
               $column = name of column containing serial data type (scalar)
  Returns:     Last inserted ID (scalar)
 
+=back
+
 
 =head2 Schema Modification Methods
 
@@ -1397,6 +1407,9 @@ MySQL only.
  Params:      none
  Returns:     List of all the "bug" fields
 
+=back
+
+
 =head2 Transaction Methods
 
 These methods deal with the starting and stopping of transactions 
@@ -1424,6 +1437,9 @@ in the database.
  Params:      none
  Returns:     none
 
+=back
+
+
 =head1 SUBCLASS HELPERS
 
 Methods in this class are intended to be used by subclasses to help them
@@ -1444,6 +1460,7 @@ with their functions.
 
 =back
 
+
 =head1 DEPRECATED ROUTINES
 
 Several database routines are deprecated. They should not be used in new code,
@@ -1481,6 +1498,7 @@ PopGlobalSQLState
 
 =back
 
+
 =head1 SEE ALSO
 
 L<DBI>
index 983cb3b06acad20c0cdca46fd16973bd2ab761bb..e76dc4599b431cc23d06639e7692ae86b9dcba5a 100644 (file)
@@ -483,7 +483,7 @@ sub bz_setup_database {
 
 =begin private
 
-=head 1 MYSQL-SPECIFIC DATABASE-READING METHODS
+=head1 MYSQL-SPECIFIC DATABASE-READING METHODS
 
 These methods read information about the database from the disk,
 instead of from a Schema object. They are only reliable for MySQL 
@@ -600,12 +600,14 @@ sub bz_index_list_real {
 
 =back
 
-=head 1 MYSQL-SPECIFIC "SCHEMA BUILDER"
+=head1 MYSQL-SPECIFIC "SCHEMA BUILDER"
 
 MySQL needs to be able to read in a legacy database (from before 
 Schema existed) and create a Schema object out of it. That's what
 this code does.
 
+=end private
+
 =cut
 
 # This sub itself is actually written generically, but the subroutines
@@ -642,10 +644,3 @@ sub _bz_build_schema_from_disk {
     return $schema;
 }
 1;
-
-__END__
-
-=back
-
-=end private
-
index 300a97b98c130476f7152c94b78b3eaef14b6a4d..f86f47965c3825ee2fa6f6bf461d155c34685798 100644 (file)
@@ -72,6 +72,7 @@ module directly, but should instead rely on methods provided by
 Bugzilla::DB.
 
 =cut
+
 #--------------------------------------------------------------------------
 # Define the Bugzilla abstract database schema and version as constants.
 
@@ -1032,13 +1033,13 @@ DB-specific code in a subclass. Methods which are prefixed with C<_>
 are considered protected. Subclasses may override these methods, but
 other modules should not invoke these methods directly.
 
-=over 4
-
 =cut
 
 #--------------------------------------------------------------------------
 sub new {
 
+=over
+
 =item C<new>
 
  Description: Public constructor method used to instantiate objects of this
@@ -1383,6 +1384,7 @@ sub get_add_column_ddl {
  Returns:     An array of SQL statements.
 
 =cut
+
     my ($self, $table, $column, $definition, $init_value) = @_;
     my @statements;
     push(@statements, "ALTER TABLE $table ADD COLUMN $column " .
@@ -1565,6 +1567,7 @@ sub get_drop_index_ddl {
  Returns:     An array of SQL statements.
 
 =cut
+
     my ($self, $table, $name) = @_;
 
     # Although ANSI SQL-92 doesn't specify a method of dropping an index,
@@ -1594,6 +1597,7 @@ sub get_drop_column_ddl {
  Returns:     An array of SQL statements.
 
 =cut
+
 sub get_drop_table_ddl {
     my ($self, $table) = @_;
     return ("DROP TABLE $table");
@@ -1626,6 +1630,7 @@ sub get_rename_column_ddl {
  Returns:     nothing
 
 =cut
+
 sub delete_table {
     my ($self, $name) = @_;
 
@@ -1674,6 +1679,7 @@ sub get_column_abstract {
               undef.
 
 =cut
+
 sub get_indexes_on_column_abstract {
     my ($self, $table, $column) = @_;
     my %ret_hash;
@@ -1702,7 +1708,7 @@ sub get_indexes_on_column_abstract {
 
 sub get_index_abstract {
 
-=item C<get_index_abstract($table, $index)
+=item C<get_index_abstract($table, $index)>
 
  Description: Returns an index definition from the internal abstract schema.
  Params:      $table - The table the index is on.
@@ -1751,6 +1757,7 @@ sub get_table_abstract {
  Returns:     nothing
 
 =cut
+
 sub add_table {
     my ($self, $name, $definition) = @_;
     (die "Table already exists: $name")
@@ -1898,6 +1905,7 @@ sub _set_object {
  Returns:     nothing
 
 =cut
+
 sub delete_index {
     my ($self, $table, $name) = @_;
 
@@ -1921,6 +1929,9 @@ sub columns_equal {
  Params:      $col_one, $col_two - The columns to compare. Hash 
                   references, in C<ABSTRACT_SCHEMA> format.
  Returns:     C<1> if the columns are identical, C<0> if they are not.
+
+=back
+
 =cut
 
     my $self = shift;
@@ -1958,6 +1969,7 @@ sub columns_equal {
               is either store it somewhere or deserialize it.
 
 =cut
+
 sub serialize_abstract {
     my ($self) = @_;
     # We do this so that any two stored Schemas will have the
@@ -1981,6 +1993,7 @@ sub serialize_abstract {
               However, it will represent the serialized data instead of
               ABSTRACT_SCHEMA.
 =cut
+
 sub deserialize_abstract {
     my ($class, $serialized, $version) = @_;
 
@@ -2005,6 +2018,8 @@ sub deserialize_abstract {
 These methods are generally called on the class instead of on a specific
 object.
 
+=over
+
 =item C<get_empty_schema()>
 
  Description: Returns a Schema that has no tables. In effect, this
@@ -2012,6 +2027,8 @@ object.
  Params:      none
  Returns:     A "empty" Schema object.
 
+=back
+
 =cut
 
 sub get_empty_schema {
@@ -2020,9 +2037,8 @@ sub get_empty_schema {
 }
 
 1;
-__END__
 
-=back
+__END__
 
 =head1 ABSTRACT DATA TYPES
 
index ecc430cb536a994b22a3daa2a794e0be45c333d5..0f4caf27436376592f20fce5b5afdcf6b91fdea9 100644 (file)
@@ -154,7 +154,7 @@ Bugzilla::Error - Error handling utilities for Bugzilla
 
   ThrowUserError("error_tag",
                  { foo => 'bar' });
+
 =head1 DESCRIPTION
 
 Various places throughout the Bugzilla codebase need to report errors to the
index b0a0586c2a2c96299448614090d01d352da9dc11..65636d78c3f51dc03adb950eb210ce1fb7801593 100644 (file)
@@ -95,8 +95,6 @@ use vars qw($template $vars);
 basic sets of columns and tables for getting flag types from th
 database.  B<Used by get, match, sqlify_criteria and perlify_record>
 
-=back
-
 =cut
 
 my @base_columns = 
@@ -129,10 +127,14 @@ my @base_tables = ("flags");
 
 =head1 PUBLIC FUNCTIONS
 
-=over C<get($id)>
+=over
+
+=item C<get($id)>
 
 Retrieves and returns a flag from the database.
 
+=back
+
 =cut
 
 # !!! Implement a cache for this function!
@@ -723,7 +725,7 @@ sub clear {
 
 =over
 
-=item C<FormToNewFlags($target, $cgi)
+=item C<FormToNewFlags($target, $cgi)>
 
 Checks whether or not there are new flags to create and returns an
 array of flag objects. This array is then passed to Flag::create().
@@ -1022,6 +1024,8 @@ Converts a row from the database into a Perl record.
 
 =back
 
+=end private
+
 =cut
 
 sub perlify_record {
@@ -1044,8 +1048,6 @@ sub perlify_record {
     return $flag;
 }
 
-=end private
-
 =head1 SEE ALSO
 
 =over
@@ -1054,6 +1056,7 @@ sub perlify_record {
 
 =back
 
+
 =head1 CONTRIBUTORS
 
 =over
index 97c6f2c0eb122629ebf13a998e9c552140e5b1d3..49c9f777e8d597b8644b73c375c31e53aaecec29 100644 (file)
@@ -117,6 +117,7 @@ my @base_tables = ("flagtypes");
 ######################################################################
 # Public Functions
 ######################################################################
+
 =head1 PUBLIC FUNCTIONS/METHODS
 
 =over
@@ -597,6 +598,8 @@ sub perlify_record {
     return $type;
 }
 
+1;
+
 =end private
 
 =head1 SEE ALSO
@@ -618,5 +621,3 @@ sub perlify_record {
 =back
 
 =cut
-
-1;
index 494876b31e4b2d93fcd251f2984e16a23ca77a4e..1964eed4b52913c28c164b4bd6356624ec25555e 100644 (file)
@@ -1255,6 +1255,8 @@ L<Bugzilla-E<gt>user|Bugzilla/"user">.
 
 =head1 CONSTANTS
 
+=over
+
 =item C<USER_MATCH_MULTIPLE>
 
 Returned by C<match_field()> when at least one field matched more than 
@@ -1275,6 +1277,8 @@ user.
 Passed in to match_field to tell match_field to never display a 
 confirmation screen.
 
+=back
+
 =head1 METHODS
 
 =over 4
@@ -1527,11 +1531,11 @@ for flag mail.
 
 =head1 CLASS FUNCTIONS
 
-=over4
-
 These are functions that are not called on a User object, but instead are
 called "statically," just like a normal procedural function.
 
+=over 4
+
 =item C<insert_new_user>
 
 Creates a new user in the database.
index a5ce9411f00e078ca7b0bfd0b40bc8c53c01ac4a..450d20a7fff0a075ce3e0b1aadbaeb88decd05e3 100644 (file)
@@ -279,15 +279,18 @@ sub set {
 __END__
 
 =head1 NAME
+
 Bugzilla::User::Setting - Object for a user preference setting
 
 =head1 SYNOPSIS
+
 Setting.pm creates a setting object, which is a hash containing the user
 preference information for a single preference for a single user. These 
 are usually accessed through the "settings" object of a user, and not 
 directly.
 
 =head1 DESCRIPTION
+
 use Bugzilla::User::Setting;
 my $settings;
 
@@ -343,13 +346,17 @@ Params:      C<$setting_name> - string - the name of the setting
 Returns:     nothing
 
 =begin private
+
 =item C<_setting_exists>
 
 Description: Determines if a given setting exists in the database.
 Params:      C<$setting_name> - string - the setting name
 Returns:     boolean - true if the setting already exists in the DB.
 
+=back
+
 =end private
+
 =head1 METHODS
 
 =over 4
@@ -386,4 +393,4 @@ Description: If a user chooses to use their own value rather than the
 Params:      C<$value> - string - the new value for this setting for this user.
 Returns:     nothing
 
-
+=back
index 83c9bf7d3fe29c51fbc2a8062a21ef2267cd7c4f..8887e02d7747f21dca9bf0011919747e0fb3c25e 100644 (file)
@@ -550,8 +550,6 @@ The intended use of this function is to wrap comments that are about to be
 displayed or emailed. Generally, wrapped text should not be stored in the
 database.
 
-=back
-
 =item C<find_wrap_point($string, $maxpos)>
 
 Search for a comma, a whitespace or a hyphen to split $string, within the first
@@ -581,6 +579,9 @@ the routine has to "guess" the date format that was passed to $dbh->sql_date_for
 Returns a number with 2 digit precision, unless the last digit is a 0. Then it 
 returns only 1 digit precision.
 
+=back
+
+
 =head2 Files
 
 =over 4