PHP Класс Lumberjack\PostTypes\Post

Наследование: extends TimberPos\TimberPost
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$postType

Открытые методы

Метод Описание
all ( integer $perPage ) : array Get all posts of this type
postType ( )
posts ( array $args = null ) : array Raw query function that uses the arguments provided to make a call to Timber::get_posts and casts the returning data in instances of ourself.
query ( array $args = null ) : array Convenience function that takes a standard set of WP_Query arguments but mixes it with arguments that mean we're selecting the right post type

Описание методов

all() публичный статический метод

Get all posts of this type
public static all ( integer $perPage ) : array
$perPage integer The number of items to return (defaults to all)
Результат array Array of Post objects

postType() публичный статический метод

public static postType ( )

posts() публичный статический метод

Raw query function that uses the arguments provided to make a call to Timber::get_posts and casts the returning data in instances of ourself.
public static posts ( array $args = null ) : array
$args array standard WP_Query array
Результат array An array of Post objects

query() публичный статический метод

Convenience function that takes a standard set of WP_Query arguments but mixes it with arguments that mean we're selecting the right post type
public static query ( array $args = null ) : array
$args array standard WP_Query array
Результат array An array of Post objects

Описание свойств

$postType защищенное статическое свойство

protected static $postType