ShrimpTest Shortcode variant type class
An object-oriented variant type specification. This class name is handed to register_shrimptest_variant_type() at the end of this file so it is registered.
Many of the properties in the resulting object are there as register_shrimptest_variant_type() expects them.
Located in /plugins/variant-shortcode.php (line 23)
An array of detected experiment ids
A meta key for storing experiment ids attached to an experiment
The user-facing label for the variant
The shortcode string
This variant type can only be set programmatically
Constructor
Registers a number of actions
Add A/B button in the editor
some code based on Ratings Shorttags by Joen Asmussen, GPL
Take [ab] shortcodes found in the content and insert the appropriate experiment id
Add JavaScript-importing code for tinymce
Print a message in the variants extra of the 'Add new experiment' screen for experiments using this variant type
Print styling and JavaScript for the 'Add new experiment' screen
Cleanup experiment ids which have been removed
Check to find [ab] shortcodes in the content and modify the content if necessary.
Print a message at the top of edit post/page screens alerting the user to inactive [ab] shortcode experiments on the screen.
Registers and updates experiments based on detected shortcodes
Register the abtest button with tinymce
Print the #shrimptest_variant_shortcode div which is displayed as an overlay when the button is pressed.
Handle found [ab] shortcodes
Documentation generated on Sat, 04 Sep 2010 23:40:58 -0400 by phpDocumentor 1.4.3