PHP 클래스 Timber\User

상속: extends Core, implements Timber\CoreInterface
파일 보기 프로젝트 열기: jarednova/timber 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_link
$avatar The URL of the author's avatar
$description The description from WordPress
$display_name
$first_name The first name of the user
$id The ID from WordPress
$last_name The last name of the user
$object_type
$representation
$user_nicename

공개 메소드들

메소드 설명
__construct ( object | integer | boolean $uid = false )
__set ( string $field, mixed $value )
__toString ( ) : string
get_custom ( ) : array | null
get_meta ( string $field_name ) : null
get_meta_field ( string $field_name ) : mixed
link ( ) : string
meta ( string $field_name ) : mixed
name ( ) : string
path ( ) : string
slug ( ) : string

보호된 메소드들

메소드 설명
init ( object | integer | boolean $uid = false )

메소드 상세

__construct() 공개 메소드

public __construct ( object | integer | boolean $uid = false )
$uid object | integer | boolean

__set() 공개 메소드

public __set ( string $field, mixed $value )
$field string
$value mixed

__toString() 공개 메소드

public __toString ( ) : string
리턴 string a fallback for TimberUser::name()

get_custom() 공개 메소드

public get_custom ( ) : array | null
리턴 array | null

get_meta() 공개 메소드

public get_meta ( string $field_name ) : null
$field_name string
리턴 null

get_meta_field() 공개 메소드

public get_meta_field ( string $field_name ) : mixed
$field_name string
리턴 mixed

init() 보호된 메소드

protected init ( object | integer | boolean $uid = false )
$uid object | integer | boolean The user ID to use

meta() 공개 메소드

public meta ( string $field_name ) : mixed
$field_name string
리턴 mixed

name() 공개 메소드

public name ( ) : string
리턴 string the human-friendly name of the user (ex: "Buster Bluth")

path() 공개 메소드

public path ( ) : string
리턴 string ex: /author/lincoln

slug() 공개 메소드

public slug ( ) : string
리턴 string ex baberaham-lincoln

프로퍼티 상세

$avatar 공개적으로 프로퍼티

The URL of the author's avatar
public $avatar

$description 공개적으로 프로퍼티

The description from WordPress
public $description

$display_name 공개적으로 프로퍼티

public $display_name

$first_name 공개적으로 프로퍼티

The first name of the user
public $first_name

$id 공개적으로 프로퍼티

The ID from WordPress
public $id

$last_name 공개적으로 프로퍼티

The last name of the user
public $last_name

$object_type 공개적으로 프로퍼티

public $object_type

$representation 공개적으로 정적으로 프로퍼티

public static $representation

$user_nicename 공개적으로 프로퍼티

public $user_nicename