@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * Save a record. |
80 | 80 | * |
81 | 81 | * @param string[] $args The request arguments. |
82 | - * @return boolean |
|
82 | + * @return false|null |
|
83 | 83 | */ |
84 | 84 | public function save( $args ) { |
85 | 85 | $db = new \WordPress\Tabulate\DB\Database( $this->wpdb ); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * Delete (or ask for confirmation of deleting) a single record. |
132 | 132 | * |
133 | 133 | * @param string[] $args The request arguments. |
134 | - * @return type |
|
134 | + * @return null|string |
|
135 | 135 | */ |
136 | 136 | public function delete( $args ) { |
137 | 137 | $db = new \WordPress\Tabulate\DB\Database( $this->wpdb ); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | /** |
118 | 118 | * Get the valid options for this column; only applies to ENUM and SET. |
119 | 119 | * |
120 | - * @return array The available options. |
|
120 | + * @return string[] The available options. |
|
121 | 121 | */ |
122 | 122 | public function get_options() { |
123 | 123 | return $this->options; |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | /** |
271 | 271 | * Get the default value for this column. |
272 | 272 | * |
273 | - * @return mixed |
|
273 | + * @return string|null |
|
274 | 274 | */ |
275 | 275 | public function get_default() { |
276 | 276 | if ( 'CURRENT_TIMESTAMP' === $this->default_value ) { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * View a report. |
22 | 22 | * |
23 | 23 | * @param string[] $args The request arguments. |
24 | - * @return type |
|
24 | + * @return null|string |
|
25 | 25 | */ |
26 | 26 | public function index( $args ) { |
27 | 27 | $db = new Database( $this->wpdb ); |
@@ -135,7 +135,7 @@ |
||
135 | 135 | * Get an item from this template's data. |
136 | 136 | * |
137 | 137 | * @param string $name The name of the template variable. |
138 | - * @return mixed |
|
138 | + * @return string |
|
139 | 139 | */ |
140 | 140 | public function __get( $name ) { |
141 | 141 | return $this->data[ $name ]; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @param Table $table The table into which the record is being saved. |
118 | 118 | * @param string $pk_value The primary key of the record being saved. May be null. |
119 | - * @return boolean |
|
119 | + * @return false|null |
|
120 | 120 | */ |
121 | 121 | public function before_save( Table $table, $pk_value ) { |
122 | 122 | // Don't save changes to the changes tables. |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * |
138 | 138 | * @param Table $table The table the record is being saved in. |
139 | 139 | * @param Record $new_record The record, after being saved. |
140 | - * @return boolean |
|
140 | + * @return false|null |
|
141 | 141 | */ |
142 | 142 | public function after_save( Table $table, Record $new_record ) { |
143 | 143 | // Don't save changes to the changes tables. |
@@ -669,7 +669,7 @@ discard block |
||
669 | 669 | /** |
670 | 670 | * Get a count of the number of pages in the currently filtered record set. |
671 | 671 | * |
672 | - * @return integer The page count. |
|
672 | + * @return double The page count. |
|
673 | 673 | */ |
674 | 674 | public function get_page_count() { |
675 | 675 | return ceil( $this->count_records() / $this->get_records_per_page() ); |
@@ -987,7 +987,7 @@ discard block |
||
987 | 987 | /** |
988 | 988 | * Get a list of the names of the foreign keys in this table. |
989 | 989 | * |
990 | - * @return string[] Names of foreign key columns in this table. |
|
990 | + * @return integer[] Names of foreign key columns in this table. |
|
991 | 991 | */ |
992 | 992 | public function get_foreign_key_names() { |
993 | 993 | return array_keys( $this->get_referenced_tables( false ) ); |
@@ -1251,7 +1251,7 @@ discard block |
||
1251 | 1251 | * Get a fully-qualified URL to a Back End page for this table. |
1252 | 1252 | * |
1253 | 1253 | * @param string $action Which action to use ('index', 'import', etc.). |
1254 | - * @param string[]|boolean $extra_params Other query string parameters to add. |
|
1254 | + * @param null|false $extra_params Other query string parameters to add. |
|
1255 | 1255 | * @param string $controller Which controller to use ('table', 'record', etc.). |
1256 | 1256 | * @return string The full URL. |
1257 | 1257 | */ |