PHP 클래스 SignaturesPlugin, addons

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

공개 프로퍼티들

프로퍼티 타입 설명
$Disabled

공개 메소드들

메소드 설명
assetModel_styleCss_handler ( $Sender )
base_afterCommentBody_handler ( $Sender ) Deprecated in 2.1.
base_render_before ( Gdn_Control $sender, array $args ) Add a custom signature style tag to enforce image height.
checkNumberOfImages ( $Values, &$Sender ) Checks number of images in signature against Plugins.Signatures.MaxNumberImages
checkSignatureLength ( $Values, &$Sender ) Checks signature length against Plugins.Signatures.MaxLength
controller_Modify ( $Sender ) * API METHODS
controller_index ( $Sender )
crossCheckSignature ( $Values, &$Sender ) Checks signature against constraints set in config settings, and executes the external ValidateSignature function, if it exists.
discussionController_afterDiscussionBody_handler ( $Sender ) New call for 2.1.
profileController_afterAddSideMenu_handler ( $Sender ) Add "Signature Settings" to profile edit mode side menu.
profileController_beforeProfileOptions_handler ( $Sender, $Args ) Add "Signature Settings" to Profile Edit button group.
profileController_signature_create ( ProfileController $Sender ) Profile settings
setConfigSettingsToDefault ( string $basename, array $settings ) Why do we need this? (i.e., Mantra for the function) We retrieve the signature restraints from the config settings.
setSignatureRules ( $Sender )
settingsController_signatures_create ( $Sender )
setup ( )
simpleApiPlugin_mapper_handler ( SimpleApiPlugin $Sender ) Add mapper methods
stripFormatting ( )
stripLineBreaks ( string &$Text, string $Delimiter = ' ' ) Strips all line breaks from text
structure ( )

보호된 메소드들

메소드 설명
_stripOnly ( $str, $tags, $stripContent = false )
drawSignature ( $Sender )
hide ( )
signatures ( $Sender, $RequestUserID = NULL, $Default = NULL )
userPreferences ( $SigKey = NULL, $Default = NULL )

메소드 상세

_stripOnly() 보호된 메소드

protected _stripOnly ( $str, $tags, $stripContent = false )

assetModel_styleCss_handler() 공개 메소드

public assetModel_styleCss_handler ( $Sender )

base_afterCommentBody_handler() 공개 메소드

Deprecated in 2.1.
public base_afterCommentBody_handler ( $Sender )

base_render_before() 공개 메소드

Add a custom signature style tag to enforce image height.
public base_render_before ( Gdn_Control $sender, array $args )
$sender Gdn_Control
$args array

checkNumberOfImages() 공개 메소드

Checks number of images in signature against Plugins.Signatures.MaxNumberImages
public checkNumberOfImages ( $Values, &$Sender )
$Values Signature settings form values
$Sender Controller

checkSignatureLength() 공개 메소드

Checks signature length against Plugins.Signatures.MaxLength
public checkSignatureLength ( $Values, &$Sender )
$Values Signature settings form values
$Sender Controller

controller_Modify() 공개 메소드

* API METHODS
public controller_Modify ( $Sender )

controller_index() 공개 메소드

public controller_index ( $Sender )

crossCheckSignature() 공개 메소드

Checks signature against constraints set in config settings, and executes the external ValidateSignature function, if it exists.
public crossCheckSignature ( $Values, &$Sender )
$Values Signature settings form values
$Sender Controller

discussionController_afterDiscussionBody_handler() 공개 메소드

New call for 2.1.

drawSignature() 보호된 메소드

protected drawSignature ( $Sender )

hide() 보호된 메소드

protected hide ( )

profileController_afterAddSideMenu_handler() 공개 메소드

Add "Signature Settings" to profile edit mode side menu.
public profileController_afterAddSideMenu_handler ( $Sender )
$Sender

profileController_beforeProfileOptions_handler() 공개 메소드

Only do this if they cannot edit profiles because otherwise they can't navigate there.
public profileController_beforeProfileOptions_handler ( $Sender, $Args )
$Sender

profileController_signature_create() 공개 메소드

Profile settings
public profileController_signature_create ( ProfileController $Sender )
$Sender ProfileController

setConfigSettingsToDefault() 공개 메소드

These are sometimes overridden by plugins (i.e., Ranks) If we load the dashboard signature settings form from the config file, we will get whatever session config settings are present, not the default. As such, we've created default config variables that populate the form, but we've got to transfer them over to the config settings in use. Sets config settings to the default settings.
public setConfigSettingsToDefault ( string $basename, array $settings )
$basename string
$settings array

setSignatureRules() 공개 메소드

public setSignatureRules ( $Sender )

settingsController_signatures_create() 공개 메소드

setup() 공개 메소드

public setup ( )

signatures() 보호된 메소드

protected signatures ( $Sender, $RequestUserID = NULL, $Default = NULL )

simpleApiPlugin_mapper_handler() 공개 메소드

Add mapper methods
public simpleApiPlugin_mapper_handler ( SimpleApiPlugin $Sender )
$Sender SimpleApiPlugin

stripFormatting() 공개 메소드

public stripFormatting ( )

stripLineBreaks() 공개 메소드

Strips all line breaks from text
public stripLineBreaks ( string &$Text, string $Delimiter = ' ' )
$Text string
$Delimiter string

structure() 공개 메소드

public structure ( )

userPreferences() 보호된 메소드

protected userPreferences ( $SigKey = NULL, $Default = NULL )

프로퍼티 상세

$Disabled 공개적으로 프로퍼티

public $Disabled