WPINC_class wp list util.php Notes - WordPress-Thinstall/wordpress-develop GitHub Wiki
This file contains WP_List_Util class. I've documented it as an interface.
interface WP_List_UtilInterface {
public function get_input();
public function get_output();
public function filter( $args = array(), $operator = 'AND' );
public function pluck( $field, $index_key = null );
public function sort( $orderby = array(), $order = 'ASC', $preserve_keys = false );
private function sort_callback( $a, $b );
}
Note It'd be really nice if the
operatorparameter andorderparameters were interfaces too. This would allow the functionality to not be coupled to one implementation; and then alternative implementations could be passed into the method to allow modification of functionality without altering the class.