PHP 클래스 WPAS_User

저자: Julien Liabeuf ([email protected])
파일 보기 프로젝트 열기: awesome-support/awesome-support 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$instance object Instance of this class.

공개 메소드들

메소드 설명
__construct ( )
auto_assignment_user_column ( array $columns ) : mixed Add auto-assignment column in users table
auto_assignment_user_column_content ( mixed $value, string $column_name, integer $user_id ) : string Add auto-assignment user column content
enable_assignment ( integer $user_id ) : void Enable auto-assignment for new agents
get_instance ( ) : object Return an instance of this class.
maybe_enable_assignment ( integer $user_id, array $old_data ) : void Maybe enable auto assignment for this user
profile_field_after_reply ( WP_User $user ) : void User profile field "after reply"
profile_field_agent_department ( WP_User $user ) : void User profile field "departments"
profile_field_smart_tickets_order ( WP_User $user ) : void User profile field "tickets order"
profile_field_user_can_be_assigned ( WP_User $user ) : void User profile field "can be assigned"
save_user_custom_fields ( integer $user_id ) : void Save the user preferences.
user_profile_custom_fields ( WP_User $user ) : boolean | void Add user preferences to the profile page.

메소드 상세

__construct() 공개 메소드

public __construct ( )

auto_assignment_user_column() 공개 메소드

Add auto-assignment column in users table
부터: 3.2
public auto_assignment_user_column ( array $columns ) : mixed
$columns array
리턴 mixed

auto_assignment_user_column_content() 공개 메소드

Add auto-assignment user column content
부터: 3.2
public auto_assignment_user_column_content ( mixed $value, string $column_name, integer $user_id ) : string
$value mixed Column value
$column_name string Column name
$user_id integer Current user ID
리턴 string

enable_assignment() 공개 메소드

Enable auto-assignment for new agents
부터: 3.2
public enable_assignment ( integer $user_id ) : void
$user_id integer
리턴 void

get_instance() 공개 정적인 메소드

Return an instance of this class.
부터: 3.0.0
public static get_instance ( ) : object
리턴 object A single instance of this class.

maybe_enable_assignment() 공개 메소드

Unfortunately there is no way to know what were the previous user capabilities which makes it impossible to safely enable auto-assignment. We are not able to differentiate a user being upgraded to support agent from a user who already was an agent but deactivated auto assignment and updated his profile.
부터: 3.2
public maybe_enable_assignment ( integer $user_id, array $old_data ) : void
$user_id integer
$old_data array
리턴 void

profile_field_after_reply() 공개 메소드

User profile field "after reply"
부터: 3.1.5
public profile_field_after_reply ( WP_User $user ) : void
$user WP_User
리턴 void

profile_field_agent_department() 공개 메소드

User profile field "departments"
부터: 3.3
public profile_field_agent_department ( WP_User $user ) : void
$user WP_User
리턴 void

profile_field_smart_tickets_order() 공개 메소드

Let the user selects the order in which his tickets appear in the tickets list screen.
부터: 3.3.2
public profile_field_smart_tickets_order ( WP_User $user ) : void
$user WP_User
리턴 void

profile_field_user_can_be_assigned() 공개 메소드

User profile field "can be assigned"
부터: 3.1.5
public profile_field_user_can_be_assigned ( WP_User $user ) : void
$user WP_User
리턴 void

save_user_custom_fields() 공개 메소드

Save the user preferences.
부터: 3.0.0
public save_user_custom_fields ( integer $user_id ) : void
$user_id integer ID of the user to modify
리턴 void

user_profile_custom_fields() 공개 메소드

Add user preferences to the profile page.
부터: 3.0.0
public user_profile_custom_fields ( WP_User $user ) : boolean | void
$user WP_User
리턴 boolean | void

프로퍼티 상세

$instance 보호되어 있는 정적으로 프로퍼티

Instance of this class.
부터: 1.0.0
protected static object $instance
리턴 object