Commit da69ce2b authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 301967: Some .pm files have invalid POD syntax - Patch by Frédéric Buclin…

Bug 301967: Some .pm files have invalid POD syntax - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
parent 80d8289e
...@@ -184,8 +184,6 @@ the status codes defined in L<Bugzilla::Constants|Bugzilla::Constants> and ...@@ -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 described below. The rest of the return values are status code-specific
and are explained in the status code descriptions. and are explained in the status code descriptions.
=over 4
=item C<AUTH_OK> =item C<AUTH_OK>
Authentication succeeded. The third variable is the userid of the new 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 ...@@ -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. typically come from the C<disabledtext> field in the C<profiles> table.
Note that this argument is a string, not a tag. Note that this argument is a string, not a tag.
=back
=item C<current_verify_class> =item C<current_verify_class>
This scalar gets populated with the full name (eg., This scalar gets populated with the full name (eg.,
...@@ -269,6 +265,8 @@ by trying cookies as a fallback. ...@@ -269,6 +265,8 @@ by trying cookies as a fallback.
The login interface consists of the following methods: The login interface consists of the following methods:
=over 4
=item C<login>, which takes a C<$type> argument, using constants found in =item C<login>, which takes a C<$type> argument, using constants found in
C<Bugzilla::Constants>. C<Bugzilla::Constants>.
...@@ -281,8 +279,6 @@ login method to prompt the user for this data. ...@@ -281,8 +279,6 @@ login method to prompt the user for this data.
The constants accepted by C<login> include the following: The constants accepted by C<login> include the following:
=over 4
=item C<LOGIN_OPTIONAL> =item C<LOGIN_OPTIONAL>
A login is never required to access this data. Attempting to login is A login is never required to access this data. Attempting to login is
...@@ -299,14 +295,10 @@ I<requirelogin> parameter. ...@@ -299,14 +295,10 @@ I<requirelogin> parameter.
A login is always required to access this data. A login is always required to access this data.
=back
=item C<logout>, which takes a C<Bugzilla::User> argument for the user =item C<logout>, which takes a C<Bugzilla::User> argument for the user
being logged out, and an C<$option> argument. Possible values for being logged out, and an C<$option> argument. Possible values for
C<$option> include: C<$option> include:
=over 4
=item C<LOGOUT_CURRENT> =item C<LOGOUT_CURRENT>
Log out the user and invalidate his currently registered session. Log out the user and invalidate his currently registered session.
......
...@@ -104,10 +104,12 @@ Bugzilla::Auth::Login::WWW - WWW login information gathering module ...@@ -104,10 +104,12 @@ Bugzilla::Auth::Login::WWW - WWW login information gathering module
=head1 METHODS =head1 METHODS
=over
=item C<login> =item C<login>
Passes C<login> calls to each class defined in the param C<user_info_class> 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 and returns a C<Bugzilla::User> object from the first one that successfully
gathers user login information. gathers user login information.
=back
...@@ -835,7 +835,9 @@ sub _bz_init_schema_storage { ...@@ -835,7 +835,9 @@ sub _bz_init_schema_storage {
Params: none Params: none
Returns: A C<Bugzilla::DB::Schema> object representing the database Returns: A C<Bugzilla::DB::Schema> object representing the database
as it exists on the disk. as it exists on the disk.
=cut =cut
sub _bz_real_schema { sub _bz_real_schema {
my ($self) = @_; my ($self) = @_;
return $self->{private_real_schema} if exists $self->{private_real_schema}; return $self->{private_real_schema} if exists $self->{private_real_schema};
...@@ -852,7 +854,6 @@ sub _bz_real_schema { ...@@ -852,7 +854,6 @@ sub _bz_real_schema {
return $self->{private_real_schema}; return $self->{private_real_schema};
} }
=item C<_bz_store_real_schema()> =item C<_bz_store_real_schema()>
Description: Stores the _bz_real_schema structures in the database Description: Stores the _bz_real_schema structures in the database
...@@ -863,7 +864,12 @@ sub _bz_real_schema { ...@@ -863,7 +864,12 @@ sub _bz_real_schema {
Precondition: $self->{_bz_real_schema} must exist. Precondition: $self->{_bz_real_schema} must exist.
=back
=end private
=cut =cut
sub _bz_store_real_schema { sub _bz_store_real_schema {
my ($self) = @_; my ($self) = @_;
...@@ -890,9 +896,6 @@ sub _bz_store_real_schema { ...@@ -890,9 +896,6 @@ sub _bz_store_real_schema {
1; 1;
__END__ __END__
=back
=end private
=head1 NAME =head1 NAME
...@@ -982,6 +985,9 @@ Bugzilla::DB module, this would be "Mysql." For PostgreSQL it would be "Pg." ...@@ -982,6 +985,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. The minimum version of the DBD module that we require for this database.
=back
=head1 CONNECTION =head1 CONNECTION
A new database handle to the required database can be created using this A new database handle to the required database can be created using this
...@@ -1038,6 +1044,7 @@ should not be called from anywhere else. ...@@ -1038,6 +1044,7 @@ should not be called from anywhere else.
=back =back
=head1 ABSTRACT METHODS =head1 ABSTRACT METHODS
Note: Methods which can be implemented generically for all DBs are implemented in Note: Methods which can be implemented generically for all DBs are implemented in
...@@ -1218,14 +1225,15 @@ formatted SQL command have prefix C<sql_>. All other methods have prefix C<bz_>. ...@@ -1218,14 +1225,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. back). False (0) or no param if the operation succeeded.
Returns: none Returns: none
=back
=head1 IMPLEMENTED METHODS =head1 IMPLEMENTED METHODS
These methods are implemented in Bugzilla::DB, and only need These methods are implemented in Bugzilla::DB, and only need
to be implemented in subclasses if you need to override them for to be implemented in subclasses if you need to override them for
database-compatibility reasons. database-compatibility reasons.
=over 4
=head2 General Information Methods =head2 General Information Methods
These methods return information about data in the database. These methods return information about data in the database.
...@@ -1244,6 +1252,8 @@ These methods return information about data in the database. ...@@ -1244,6 +1252,8 @@ These methods return information about data in the database.
$column = name of column containing serial data type (scalar) $column = name of column containing serial data type (scalar)
Returns: Last inserted ID (scalar) Returns: Last inserted ID (scalar)
=back
=head2 Schema Modification Methods =head2 Schema Modification Methods
...@@ -1398,6 +1408,9 @@ MySQL only. ...@@ -1398,6 +1408,9 @@ MySQL only.
Params: none Params: none
Returns: List of all the "bug" fields Returns: List of all the "bug" fields
=back
=head2 Transaction Methods =head2 Transaction Methods
These methods deal with the starting and stopping of transactions These methods deal with the starting and stopping of transactions
...@@ -1425,6 +1438,9 @@ in the database. ...@@ -1425,6 +1438,9 @@ in the database.
Params: none Params: none
Returns: none Returns: none
=back
=head1 SUBCLASS HELPERS =head1 SUBCLASS HELPERS
Methods in this class are intended to be used by subclasses to help them Methods in this class are intended to be used by subclasses to help them
...@@ -1445,6 +1461,7 @@ with their functions. ...@@ -1445,6 +1461,7 @@ with their functions.
=back =back
=head1 DEPRECATED ROUTINES =head1 DEPRECATED ROUTINES
Several database routines are deprecated. They should not be used in new code, Several database routines are deprecated. They should not be used in new code,
...@@ -1482,6 +1499,7 @@ PopGlobalSQLState ...@@ -1482,6 +1499,7 @@ PopGlobalSQLState
=back =back
=head1 SEE ALSO =head1 SEE ALSO
L<DBI> L<DBI>
......
...@@ -494,7 +494,7 @@ sub bz_setup_database { ...@@ -494,7 +494,7 @@ sub bz_setup_database {
=begin private =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, These methods read information about the database from the disk,
instead of from a Schema object. They are only reliable for MySQL instead of from a Schema object. They are only reliable for MySQL
...@@ -611,12 +611,14 @@ sub bz_index_list_real { ...@@ -611,12 +611,14 @@ sub bz_index_list_real {
=back =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 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 Schema existed) and create a Schema object out of it. That's what
this code does. this code does.
=end private
=cut =cut
# This sub itself is actually written generically, but the subroutines # This sub itself is actually written generically, but the subroutines
...@@ -653,10 +655,3 @@ sub _bz_build_schema_from_disk { ...@@ -653,10 +655,3 @@ sub _bz_build_schema_from_disk {
return $schema; return $schema;
} }
1; 1;
__END__
=back
=end private
...@@ -72,6 +72,7 @@ module directly, but should instead rely on methods provided by ...@@ -72,6 +72,7 @@ module directly, but should instead rely on methods provided by
Bugzilla::DB. Bugzilla::DB.
=cut =cut
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Define the Bugzilla abstract database schema and version as constants. # 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<_> ...@@ -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 are considered protected. Subclasses may override these methods, but
other modules should not invoke these methods directly. other modules should not invoke these methods directly.
=over 4
=cut =cut
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
sub new { sub new {
=over
=item C<new> =item C<new>
Description: Public constructor method used to instantiate objects of this Description: Public constructor method used to instantiate objects of this
...@@ -1383,6 +1384,7 @@ sub get_add_column_ddl { ...@@ -1383,6 +1384,7 @@ sub get_add_column_ddl {
Returns: An array of SQL statements. Returns: An array of SQL statements.
=cut =cut
my ($self, $table, $column, $definition, $init_value) = @_; my ($self, $table, $column, $definition, $init_value) = @_;
my @statements; my @statements;
push(@statements, "ALTER TABLE $table ADD COLUMN $column " . push(@statements, "ALTER TABLE $table ADD COLUMN $column " .
...@@ -1565,6 +1567,7 @@ sub get_drop_index_ddl { ...@@ -1565,6 +1567,7 @@ sub get_drop_index_ddl {
Returns: An array of SQL statements. Returns: An array of SQL statements.
=cut =cut
my ($self, $table, $name) = @_; my ($self, $table, $name) = @_;
# Although ANSI SQL-92 doesn't specify a method of dropping an index, # Although ANSI SQL-92 doesn't specify a method of dropping an index,
...@@ -1594,6 +1597,7 @@ sub get_drop_column_ddl { ...@@ -1594,6 +1597,7 @@ sub get_drop_column_ddl {
Returns: An array of SQL statements. Returns: An array of SQL statements.
=cut =cut
sub get_drop_table_ddl { sub get_drop_table_ddl {
my ($self, $table) = @_; my ($self, $table) = @_;
return ("DROP TABLE $table"); return ("DROP TABLE $table");
...@@ -1626,6 +1630,7 @@ sub get_rename_column_ddl { ...@@ -1626,6 +1630,7 @@ sub get_rename_column_ddl {
Returns: nothing Returns: nothing
=cut =cut
sub delete_table { sub delete_table {
my ($self, $name) = @_; my ($self, $name) = @_;
...@@ -1674,6 +1679,7 @@ sub get_column_abstract { ...@@ -1674,6 +1679,7 @@ sub get_column_abstract {
undef. undef.
=cut =cut
sub get_indexes_on_column_abstract { sub get_indexes_on_column_abstract {
my ($self, $table, $column) = @_; my ($self, $table, $column) = @_;
my %ret_hash; my %ret_hash;
...@@ -1702,7 +1708,7 @@ sub get_indexes_on_column_abstract { ...@@ -1702,7 +1708,7 @@ sub get_indexes_on_column_abstract {
sub get_index_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. Description: Returns an index definition from the internal abstract schema.
Params: $table - The table the index is on. Params: $table - The table the index is on.
...@@ -1751,6 +1757,7 @@ sub get_table_abstract { ...@@ -1751,6 +1757,7 @@ sub get_table_abstract {
Returns: nothing Returns: nothing
=cut =cut
sub add_table { sub add_table {
my ($self, $name, $definition) = @_; my ($self, $name, $definition) = @_;
(die "Table already exists: $name") (die "Table already exists: $name")
...@@ -1898,6 +1905,7 @@ sub _set_object { ...@@ -1898,6 +1905,7 @@ sub _set_object {
Returns: nothing Returns: nothing
=cut =cut
sub delete_index { sub delete_index {
my ($self, $table, $name) = @_; my ($self, $table, $name) = @_;
...@@ -1921,6 +1929,9 @@ sub columns_equal { ...@@ -1921,6 +1929,9 @@ sub columns_equal {
Params: $col_one, $col_two - The columns to compare. Hash Params: $col_one, $col_two - The columns to compare. Hash
references, in C<ABSTRACT_SCHEMA> format. references, in C<ABSTRACT_SCHEMA> format.
Returns: C<1> if the columns are identical, C<0> if they are not. Returns: C<1> if the columns are identical, C<0> if they are not.
=back
=cut =cut
my $self = shift; my $self = shift;
...@@ -1958,6 +1969,7 @@ sub columns_equal { ...@@ -1958,6 +1969,7 @@ sub columns_equal {
is either store it somewhere or deserialize it. is either store it somewhere or deserialize it.
=cut =cut
sub serialize_abstract { sub serialize_abstract {
my ($self) = @_; my ($self) = @_;
# We do this so that any two stored Schemas will have the # We do this so that any two stored Schemas will have the
...@@ -1981,6 +1993,7 @@ sub serialize_abstract { ...@@ -1981,6 +1993,7 @@ sub serialize_abstract {
However, it will represent the serialized data instead of However, it will represent the serialized data instead of
ABSTRACT_SCHEMA. ABSTRACT_SCHEMA.
=cut =cut
sub deserialize_abstract { sub deserialize_abstract {
my ($class, $serialized, $version) = @_; my ($class, $serialized, $version) = @_;
...@@ -2005,6 +2018,8 @@ sub deserialize_abstract { ...@@ -2005,6 +2018,8 @@ sub deserialize_abstract {
These methods are generally called on the class instead of on a specific These methods are generally called on the class instead of on a specific
object. object.
=over
=item C<get_empty_schema()> =item C<get_empty_schema()>
Description: Returns a Schema that has no tables. In effect, this Description: Returns a Schema that has no tables. In effect, this
...@@ -2012,6 +2027,8 @@ object. ...@@ -2012,6 +2027,8 @@ object.
Params: none Params: none
Returns: A "empty" Schema object. Returns: A "empty" Schema object.
=back
=cut =cut
sub get_empty_schema { sub get_empty_schema {
...@@ -2020,9 +2037,8 @@ sub get_empty_schema { ...@@ -2020,9 +2037,8 @@ sub get_empty_schema {
} }
1; 1;
__END__
=back __END__
=head1 ABSTRACT DATA TYPES =head1 ABSTRACT DATA TYPES
......
...@@ -57,7 +57,6 @@ sub check_form_field_defined ($$) { ...@@ -57,7 +57,6 @@ sub check_form_field_defined ($$) {
Bugzilla::Field - Useful routines for fields manipulation Bugzilla::Field - Useful routines for fields manipulation
=head1 SYNOPSIS =head1 SYNOPSIS
use Bugzilla::Field; use Bugzilla::Field;
......
...@@ -95,8 +95,6 @@ use vars qw($template $vars); ...@@ -95,8 +95,6 @@ use vars qw($template $vars);
basic sets of columns and tables for getting flag types from th basic sets of columns and tables for getting flag types from th
database. B<Used by get, match, sqlify_criteria and perlify_record> database. B<Used by get, match, sqlify_criteria and perlify_record>
=back
=cut =cut
my @base_columns = my @base_columns =
...@@ -129,10 +127,14 @@ my @base_tables = ("flags"); ...@@ -129,10 +127,14 @@ my @base_tables = ("flags");
=head1 PUBLIC FUNCTIONS =head1 PUBLIC FUNCTIONS
=over C<get($id)> =over
=item C<get($id)>
Retrieves and returns a flag from the database. Retrieves and returns a flag from the database.
=back
=cut =cut
# !!! Implement a cache for this function! # !!! Implement a cache for this function!
...@@ -723,7 +725,7 @@ sub clear { ...@@ -723,7 +725,7 @@ sub clear {
=over =over
=item C<FormToNewFlags($target, $cgi) =item C<FormToNewFlags($target, $cgi)>
Checks whether or not there are new flags to create and returns an 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(). 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. ...@@ -1022,6 +1024,8 @@ Converts a row from the database into a Perl record.
=back =back
=end private
=cut =cut
sub perlify_record { sub perlify_record {
...@@ -1044,8 +1048,6 @@ sub perlify_record { ...@@ -1044,8 +1048,6 @@ sub perlify_record {
return $flag; return $flag;
} }
=end private
=head1 SEE ALSO =head1 SEE ALSO
=over =over
...@@ -1054,6 +1056,7 @@ sub perlify_record { ...@@ -1054,6 +1056,7 @@ sub perlify_record {
=back =back
=head1 CONTRIBUTORS =head1 CONTRIBUTORS
=over =over
......
...@@ -117,6 +117,7 @@ my @base_tables = ("flagtypes"); ...@@ -117,6 +117,7 @@ my @base_tables = ("flagtypes");
###################################################################### ######################################################################
# Public Functions # Public Functions
###################################################################### ######################################################################
=head1 PUBLIC FUNCTIONS/METHODS =head1 PUBLIC FUNCTIONS/METHODS
=over =over
...@@ -597,6 +598,8 @@ sub perlify_record { ...@@ -597,6 +598,8 @@ sub perlify_record {
return $type; return $type;
} }
1;
=end private =end private
=head1 SEE ALSO =head1 SEE ALSO
...@@ -618,5 +621,3 @@ sub perlify_record { ...@@ -618,5 +621,3 @@ sub perlify_record {
=back =back
=cut =cut
1;
...@@ -1283,6 +1283,8 @@ L<Bugzilla-E<gt>user|Bugzilla/"user">. ...@@ -1283,6 +1283,8 @@ L<Bugzilla-E<gt>user|Bugzilla/"user">.
=head1 CONSTANTS =head1 CONSTANTS
=over
=item C<USER_MATCH_MULTIPLE> =item C<USER_MATCH_MULTIPLE>
Returned by C<match_field()> when at least one field matched more than Returned by C<match_field()> when at least one field matched more than
...@@ -1303,6 +1305,8 @@ user. ...@@ -1303,6 +1305,8 @@ user.
Passed in to match_field to tell match_field to never display a Passed in to match_field to tell match_field to never display a
confirmation screen. confirmation screen.
=back
=head1 METHODS =head1 METHODS
=over 4 =over 4
...@@ -1565,11 +1569,11 @@ for flag mail. ...@@ -1565,11 +1569,11 @@ for flag mail.
=head1 CLASS FUNCTIONS =head1 CLASS FUNCTIONS
=over4
These are functions that are not called on a User object, but instead are These are functions that are not called on a User object, but instead are
called "statically," just like a normal procedural function. called "statically," just like a normal procedural function.
=over 4
=item C<insert_new_user> =item C<insert_new_user>
Creates a new user in the database. Creates a new user in the database.
......
...@@ -279,15 +279,18 @@ sub set { ...@@ -279,15 +279,18 @@ sub set {
__END__ __END__
=head1 NAME =head1 NAME
Bugzilla::User::Setting - Object for a user preference setting Bugzilla::User::Setting - Object for a user preference setting
=head1 SYNOPSIS =head1 SYNOPSIS
Setting.pm creates a setting object, which is a hash containing the user Setting.pm creates a setting object, which is a hash containing the user
preference information for a single preference for a single user. These preference information for a single preference for a single user. These
are usually accessed through the "settings" object of a user, and not are usually accessed through the "settings" object of a user, and not
directly. directly.
=head1 DESCRIPTION =head1 DESCRIPTION
use Bugzilla::User::Setting; use Bugzilla::User::Setting;
my $settings; my $settings;
...@@ -343,13 +346,17 @@ Params: C<$setting_name> - string - the name of the setting ...@@ -343,13 +346,17 @@ Params: C<$setting_name> - string - the name of the setting
Returns: nothing Returns: nothing
=begin private =begin private
=item C<_setting_exists> =item C<_setting_exists>
Description: Determines if a given setting exists in the database. Description: Determines if a given setting exists in the database.
Params: C<$setting_name> - string - the setting name Params: C<$setting_name> - string - the setting name
Returns: boolean - true if the setting already exists in the DB. Returns: boolean - true if the setting already exists in the DB.
=back
=end private =end private
=head1 METHODS =head1 METHODS
=over 4 =over 4
...@@ -386,4 +393,4 @@ Description: If a user chooses to use their own value rather than the ...@@ -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. Params: C<$value> - string - the new value for this setting for this user.
Returns: nothing Returns: nothing
=back
...@@ -591,8 +591,6 @@ The intended use of this function is to wrap comments that are about to be ...@@ -591,8 +591,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 displayed or emailed. Generally, wrapped text should not be stored in the
database. database.
=back
=item C<find_wrap_point($string, $maxpos)> =item C<find_wrap_point($string, $maxpos)>
Search for a comma, a whitespace or a hyphen to split $string, within the first Search for a comma, a whitespace or a hyphen to split $string, within the first
...@@ -622,6 +620,9 @@ the routine has to "guess" the date format that was passed to $dbh->sql_date_for ...@@ -622,6 +620,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 a number with 2 digit precision, unless the last digit is a 0. Then it
returns only 1 digit precision. returns only 1 digit precision.
=back
=head2 Files =head2 Files
=over 4 =over 4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment