PHP Class WPLib_Post_List_Base, wplib

Inheritance: extends WPLib_List_Base
Show file Open project: wplib/wplib

Public Methods

Method Description
__construct ( array $posts, array $args = [] )
get_element_index ( WPLib_Post_Base $element ) : boolean | mixed Get index value for an object stored in a list.
post_types ( )

Method Details

__construct() public method

public __construct ( array $posts, array $args = [] )
$posts array
$args array

get_element_index() public method

Can be reindex on a post property.
public get_element_index ( WPLib_Post_Base $element ) : boolean | mixed
$element WPLib_Post_Base
return boolean | mixed

post_types() public method

public post_types ( )