PHP Класс SignaturesPlugin, addons

Наследование: extends Gdn_Plugin
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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