PHP Class SignaturesPlugin, addons

Inheritance: extends Gdn_Plugin
Afficher le fichier Open project: vanilla/addons

Méthodes publiques

Свойство Type Description
$Disabled

Méthodes publiques

Méthode Description
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 ( )

Méthodes protégées

Méthode Description
_stripOnly ( $str, $tags, $stripContent = false )
drawSignature ( $Sender )
hide ( )
signatures ( $Sender, $RequestUserID = NULL, $Default = NULL )
userPreferences ( $SigKey = NULL, $Default = NULL )

Method Details

_stripOnly() protected méthode

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

assetModel_styleCss_handler() public méthode

public assetModel_styleCss_handler ( $Sender )

base_afterCommentBody_handler() public méthode

Deprecated in 2.1.
public base_afterCommentBody_handler ( $Sender )

base_render_before() public méthode

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() public méthode

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

checkSignatureLength() public méthode

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

controller_Modify() public méthode

* API METHODS
public controller_Modify ( $Sender )

controller_index() public méthode

public controller_index ( $Sender )

crossCheckSignature() public méthode

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() public méthode

New call for 2.1.

drawSignature() protected méthode

protected drawSignature ( $Sender )

hide() protected méthode

protected hide ( )

profileController_afterAddSideMenu_handler() public méthode

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

profileController_beforeProfileOptions_handler() public méthode

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() public méthode

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

setConfigSettingsToDefault() public méthode

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 méthode

public setSignatureRules ( $Sender )

settingsController_signatures_create() public méthode

setup() public méthode

public setup ( )

signatures() protected méthode

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

simpleApiPlugin_mapper_handler() public méthode

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

stripFormatting() public méthode

public stripFormatting ( )

stripLineBreaks() public méthode

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

structure() public méthode

public structure ( )

userPreferences() protected méthode

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

Property Details

$Disabled public_oe property

public $Disabled