Skip to content
Snippets Groups Projects
Select Git revision
  • 2a886773a97a58504c55522eecba3122cf2cec38
  • master default protected
2 results

update-firewall.in

Blame
  • class-wp-list-util.php 6.25 KiB
    <?php
    /**
     * WordPress List utility class
     *
     * @package WordPress
     * @since 4.7.0
     */
    
    /**
     * List utility.
     *
     * Utility class to handle operations on an array of objects.
     *
     * @since 4.7.0
     */
    class WP_List_Util {
    	/**
    	 * The input array.
    	 *
    	 * @since 4.7.0
    	 * @var array
    	 */
    	private $input = array();
    
    	/**
    	 * The output array.
    	 *
    	 * @since 4.7.0
    	 * @var array
    	 */
    	private $output = array();
    
    	/**
    	 * Temporary arguments for sorting.
    	 *
    	 * @since 4.7.0
    	 * @var array
    	 */
    	private $orderby = array();
    
    	/**
    	 * Constructor.
    	 *
    	 * Sets the input array.
    	 *
    	 * @since 4.7.0
    	 *
    	 * @param array $input Array to perform operations on.
    	 */
    	public function __construct( $input ) {
    		$this->output = $this->input = $input;
    	}
    
    	/**
    	 * Returns the original input array.
    	 *
    	 * @since 4.7.0
    	 *
    	 * @return array The input array.
    	 */
    	public function get_input() {
    		return $this->input;
    	}
    
    	/**
    	 * Returns the output array.
    	 *
    	 * @since 4.7.0
    	 *
    	 * @return array The output array.