PHP 클래스 WelcomePostPlugin, addons

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

공개 메소드들

메소드 설명
entryController_registrationSuccessful_handler ( ) Redirect users to the /post/discussion end point after registration.
entryController_render_after ( EntryController $sender ) Redirect users to the /post/discussion end point after email confirmation.
postController_beforeDiscussionRender_handler ( PostController $sender, array $args ) Tweak the discussion form.
postController_render_before ( PostController $sender, array $args ) Add needed resources to the page.
setup ( ) Executed when the plugin is enabled.
structure ( ) Create the target category that is needed for this plugin to work.

보호된 메소드들

메소드 설명
isWelcomePostActive ( Gdn_Request $request, integer | boolean &$categoryID ) : boolean Check whether all condition are met for this plugin to do its magic.

메소드 상세

entryController_registrationSuccessful_handler() 공개 메소드

Redirect users to the /post/discussion end point after registration.

entryController_render_after() 공개 메소드

Redirect users to the /post/discussion end point after email confirmation.
public entryController_render_after ( EntryController $sender )
$sender EntryController Sending controller instance.

isWelcomePostActive() 보호된 메소드

Check whether all condition are met for this plugin to do its magic.
protected isWelcomePostActive ( Gdn_Request $request, integer | boolean &$categoryID ) : boolean
$request Gdn_Request
$categoryID integer | boolean Category ID of the welcome category if it exists and this function return true
리턴 boolean

postController_beforeDiscussionRender_handler() 공개 메소드

Post in the "welcome" category, prefill title...
public postController_beforeDiscussionRender_handler ( PostController $sender, array $args )
$sender PostController Sending controller instance.
$args array Event's arguments.

postController_render_before() 공개 메소드

Add needed resources to the page.
public postController_render_before ( PostController $sender, array $args )
$sender PostController Sending controller instance.
$args array Event's arguments.

setup() 공개 메소드

Executed when the plugin is enabled.
public setup ( )

structure() 공개 메소드

Create the target category that is needed for this plugin to work.
public structure ( )