-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename split test variation to url redirect variation
- Loading branch information
Showing
14 changed files
with
141 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
docs/InnoCraft-Experiments-Variations-UrlRedirectVariation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
InnoCraft\Experiments\Variations\UrlRedirectVariation | ||
=============== | ||
|
||
|
||
|
||
|
||
|
||
|
||
* Class name: UrlRedirectVariation | ||
* Namespace: InnoCraft\Experiments\Variations | ||
* Parent class: [InnoCraft\Experiments\Variations\StandardVariation](InnoCraft-Experiments-Variations-StandardVariation.md) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Methods | ||
------- | ||
|
||
|
||
### __construct | ||
|
||
mixed InnoCraft\Experiments\Variations\StandardVariation::__construct(array $variation) | ||
|
||
|
||
|
||
|
||
|
||
* Visibility: **public** | ||
* This method is defined by [InnoCraft\Experiments\Variations\StandardVariation](InnoCraft-Experiments-Variations-StandardVariation.md) | ||
|
||
|
||
#### Arguments | ||
* $variation **array** - <p>eg array('name' => 'blueColor', 'percentage' => 50). | ||
A name has to be given and can be also an ID, eg "4". Percentage is optional. | ||
If given, it defines how much traffic this variation should get. For example defining | ||
50 means, this variation will be activated in 50% of overall experiment activations.</p> | ||
|
||
|
||
|
||
### getUrl | ||
|
||
mixed InnoCraft\Experiments\Variations\UrlRedirectVariation::getUrl() | ||
|
||
|
||
|
||
|
||
|
||
* Visibility: **public** | ||
|
||
|
||
|
||
|
||
### getUrlWithExperimentParameters | ||
|
||
mixed InnoCraft\Experiments\Variations\UrlRedirectVariation::getUrlWithExperimentParameters() | ||
|
||
|
||
|
||
|
||
|
||
* Visibility: **public** | ||
|
||
|
||
|
||
|
||
### run | ||
|
||
void InnoCraft\Experiments\Variations\VariationInterface::run() | ||
|
||
Runs / executes the given variation. Depending on the variation type a different action may be executed. | ||
|
||
For example a redirect or calling a callable. | ||
|
||
* Visibility: **public** | ||
* This method is defined by [InnoCraft\Experiments\Variations\VariationInterface](InnoCraft-Experiments-Variations-VariationInterface.md) | ||
|
||
|
||
|
||
|
||
### getName | ||
|
||
string InnoCraft\Experiments\Variations\VariationInterface::getName() | ||
|
||
Get the name of the variation. | ||
|
||
|
||
|
||
* Visibility: **public** | ||
* This method is defined by [InnoCraft\Experiments\Variations\VariationInterface](InnoCraft-Experiments-Variations-VariationInterface.md) | ||
|
||
|
||
|
||
|
||
### getPercentage | ||
|
||
string InnoCraft\Experiments\Variations\VariationInterface::getPercentage() | ||
|
||
Get the percentage allocated to this variation. Only returns a percentage if a fixed percentage was allocated | ||
to this variation. If no percentage is allocated, it will use the default percentage of a variation which depends | ||
on the number of set variations within an experiment. | ||
|
||
|
||
|
||
* Visibility: **public** | ||
* This method is defined by [InnoCraft\Experiments\Variations\VariationInterface](InnoCraft-Experiments-Variations-VariationInterface.md) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
./vendor/phpdocumentor/phpdocumentor/bin/phpdoc -d ../src/ -t xml/ --visibility="public" --template="xml" | ||
./vendor/evert/phpdoc-md/bin/phpdocmd xml/structure.xml . --index="README.md" | ||
./vendor/evert/phpdoc-md/bin/phpdocmd xml/structure.xml . --index README.md | ||
rm -rf xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters