PHP 클래스 Lumberjack\PostTypes\Post

상속: extends TimberPos\TimberPost
파일 보기 프로젝트 열기: Rareloop/lumberjack 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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