PHP Class Timber\PostCollection

Inheritance: extends ArrayObject
Afficher le fichier Open project: jarednova/timber Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $posts = [], $post_class = '\Timber\Post' )
get_posts ( )
maybe_set_preview ( array $posts ) : array

Méthodes protégées

Méthode Description
init ( $posts, $post_class )

Method Details

__construct() public méthode

public __construct ( $posts = [], $post_class = '\Timber\Post' )

get_posts() public méthode

public get_posts ( )

init() protected static méthode

protected static init ( $posts, $post_class )

maybe_set_preview() public static méthode

public static maybe_set_preview ( array $posts ) : array
$posts array
Résultat array