PHP 클래스 RoleTitlePlugin, addons

상속: extends Gdn_Plugin
파일 보기 프로젝트 열기: vanilla/addons

공개 메소드들

메소드 설명
base_beforeCommentForm_handler ( object $sender, array $args ) Add the roles to the comment form
discussionController_authorInfo_handler ( DiscussionController $sender, array $args ) Inject roles into authorInfo
discussionController_beforeCommentDisplay_handler ( DiscussionController $sender, array $args ) Inject css classes into the comment containers.
discussionController_render_before ( DiscussionController $sender, array $args ) Add the user's roles to the comment data so we can visually identify different roles in the view.
postController_beforeCommentDisplay_handler ( PostController $sender, array $args ) Inject css classes into the comment containers.
postController_render_before ( PostController $sender, array $args )
profileController_render_before ( ProfileController $sender, array $args ) Add the roles to the profile body tag

비공개 메소드들

메소드 설명
formatRoleCss ( string $rawRole ) : string Generate a valid css class from a role name.
injectCssClass ( stdclass $target, string &$cssClass ) Add role(s) CSS classes to the target.

메소드 상세

base_beforeCommentForm_handler() 공개 메소드

Add the roles to the comment form
public base_beforeCommentForm_handler ( object $sender, array $args )
$sender object Sending controller instance.
$args array Event arguments.

discussionController_authorInfo_handler() 공개 메소드

Inject roles into authorInfo
public discussionController_authorInfo_handler ( DiscussionController $sender, array $args )
$sender DiscussionController Sending controller instance.
$args array Event arguments.

discussionController_beforeCommentDisplay_handler() 공개 메소드

Inject css classes into the comment containers.
public discussionController_beforeCommentDisplay_handler ( DiscussionController $sender, array $args )
$sender DiscussionController Sending controller instance.
$args array Event arguments.

discussionController_render_before() 공개 메소드

Add the user's roles to the comment data so we can visually identify different roles in the view.
public discussionController_render_before ( DiscussionController $sender, array $args )
$sender DiscussionController Sending controller instance.
$args array Event arguments.

postController_beforeCommentDisplay_handler() 공개 메소드

Inject css classes into the comment containers.
public postController_beforeCommentDisplay_handler ( PostController $sender, array $args )
$sender PostController Sending controller instance.
$args array Event arguments.

postController_render_before() 공개 메소드

public postController_render_before ( PostController $sender, array $args )
$sender PostController Sending controller instance.
$args array Event arguments.

profileController_render_before() 공개 메소드

Add the roles to the profile body tag
public profileController_render_before ( ProfileController $sender, array $args )
$sender ProfileController Sending controller instance.
$args array Event arguments.