PHP 8.2.31
Preview: Tab.php Size: 1.21 KB
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Internal/Admin/ProductForm/Tab.php

<?php
/**
 * Handles product form tab related methods.
 */

namespace Automattic\WooCommerce\Internal\Admin\ProductForm;

/**
 * Field class.
 */
class Tab extends Component {

	/**
	 * Constructor
	 *
	 * @param string $id Field id.
	 * @param string $plugin_id Plugin id.
	 * @param array  $additional_args Array containing the necessary arguments.
	 *     $args = array(
	 *       'name'            => (string) Tab name. Required.
	 *       'title'         => (string) Tab title. Required.
	 *       'order'           => (int) Tab order.
	 *       'properties'      => (array) Tab properties.
	 *     ).
	 * @throws \Exception If there are missing arguments.
	 */
	public function __construct( $id, $plugin_id, $additional_args ) {
		parent::__construct( $id, $plugin_id, $additional_args );

		$this->required_arguments = array(
			'name',
			'title',
		);

		$missing_arguments = self::get_missing_arguments( $additional_args );
		if ( count( $missing_arguments ) > 0 ) {
			throw new \Exception(
				sprintf(
				/* translators: 1: Missing arguments list. */
					esc_html__( 'You are missing required arguments of WooCommerce ProductForm Tab: %1$s', 'woocommerce' ),
					join( ', ', $missing_arguments )
				)
			);
		}
	}

}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
2.88 KB lrw-r--r-- 2024-01-30 23:24:56
Edit Download
717 B lrw-r--r-- 2023-01-25 03:19:12
Edit Download
1.27 KB lrw-r--r-- 2023-02-22 07:17:34
Edit Download
7.31 KB lrw-r--r-- 2023-02-22 07:17:34
Edit Download
1.15 KB lrw-r--r-- 2023-02-22 07:17:34
Edit Download
196 B lrw-r--r-- 2023-01-25 03:19:12
Edit Download
1.21 KB lrw-r--r-- 2023-02-22 07:17:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).