PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.7.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.7.2
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/helpers/FrmListHelper.php +14 -15 6.5.2 → 6.7.2 View file →
@@ -14,8 +14,9 @@
14 14 public $items;
15 15
16 16 /**
17 17 * @since 4.07
18 + * @var int|bool
18 19 */
19 20 public $total_items = false;
20 21
21 22 /**
@@ -189,13 +190,11 @@
189 190
190 191 /**
191 192 * An internal method that sets all the necessary pagination arguments
192 193 *
193 - * @param array $args An associative array with information about the pagination
194 + * @param array $args An associative array with information about the pagination.
194 195 *
195 196 * @access protected
196 - *
197 - * @param array|string $args
198 197 */
199 198 protected function set_pagination_args( $args ) {
200 199 $args = wp_parse_args(
201 200 $args,
@@ -267,10 +266,10 @@
267 266 *
268 267 * @since 2.0.18
269 268 * @access public
270 269 *
271 - * @param string $text The search button text
272 - * @param string $input_id The search input id
270 + * @param string $text The search button text.
271 + * @param string $input_id The search input id.
273 272 */
274 273 public function search_box( $text, $input_id ) {
275 274 if ( empty( $_REQUEST['s'] ) && ! $this->has_items() ) {
276 275 return;
@@ -379,9 +378,9 @@
379 378
380 379 $two = '';
381 380 } else {
382 381 $two = '2';
383 - }
382 + }//end if
384 383
385 384 if ( empty( $this->_actions ) ) {
386 385 return;
387 386 }
@@ -465,10 +464,10 @@
465 464 *
466 465 * @since 2.0.18
467 466 * @access protected
468 467 *
469 - * @param array $actions The list of actions
470 - * @param bool $always_visible Whether the actions should be always visible
468 + * @param array $actions The list of actions.
469 + * @param bool $always_visible Whether the actions should be always visible.
471 470 *
472 471 * @return string
473 472 */
474 473 protected function row_actions( $actions, $always_visible = false ) {
@@ -548,9 +547,9 @@
548 547 * @since 2.0.18
549 548 * @access protected
550 549 *
551 550 * @param string $option
552 - * @param int $default
551 + * @param int $default
553 552 *
554 553 * @return int
555 554 */
556 555 protected function get_items_per_page( $option, $default = 20 ) {
@@ -832,9 +831,9 @@
832 831 * @return array
833 832 */
834 833 protected function get_column_info() {
835 834 // $_column_headers is already set / cached
836 - if ( isset( $this->_column_headers ) && is_array( $this->_column_headers ) ) {
835 + if ( is_array( $this->_column_headers ) ) {
837 836 // Back-compat for list tables that have been manually setting $_column_headers for horse reasons.
838 837 // In 4.3, we added a fourth argument for primary column.
839 838 $column_headers = array( array(), array(), array(), $this->get_primary_column_name() );
840 839 foreach ( $this->_column_headers as $key => $value ) {
@@ -903,9 +902,9 @@
903 902 * @access public
904 903 *
905 904 * @staticvar int $cb_counter
906 905 *
907 - * @param bool $with_id Whether to set the id attribute or not
906 + * @param bool $with_id Whether to set the id attribute or not.
908 907 */
909 908 public function print_column_headers( $with_id = true ) {
910 909 list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();
911 910
@@ -976,9 +975,9 @@
976 975 // Hide the labels but show the border.
977 976 $column_display_name = '';
978 977 }
979 978 echo "<$tag $scope $id $class>$column_display_name</$tag>"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
980 - }
979 + }//end foreach
981 980 }
982 981
983 982 /**
984 983 * Display the table
@@ -1109,9 +1108,9 @@
1109 1108 *
1110 1109 * @since 2.0.18
1111 1110 * @access public
1112 1111 *
1113 - * @param object $item The current item
1112 + * @param object $item The current item.
1114 1113 */
1115 1114 public function single_row( $item ) {
1116 1115 echo '<tr>';
1117 1116 $this->single_row_columns( $item );
@@ -1123,9 +1122,9 @@
1123 1122 *
1124 1123 * @since 2.0.18
1125 1124 * @access protected
1126 1125 *
1127 - * @param object $item The current item
1126 + * @param object $item The current item.
1128 1127 */
1129 1128 protected function single_row_columns( $item ) {
1130 1129 list( $columns, $hidden,, $primary ) = $this->get_column_info();
1131 1130
@@ -1159,9 +1158,9 @@
1159 1158
1160 1159 echo $this->handle_row_actions( $item, $column_name, $primary ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1161 1160 echo '</td>';
1162 1161 }
1163 - }
1162 + }//end foreach
1164 1163 }
1165 1164
1166 1165 /**
1167 1166 * Generates and display row actions links for the list table.