Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezpmultivariatetest.php
Go to the documentation of this file.
1 <?php
12 class ezpMultivariateTest
13 {
19 protected $handler;
20
26 public function __construct( ezpMultivariateTestHandlerInterface $handler )
27 {
28 $this->handler = $handler;
29 }
30
37 public static function getHandler()
38 {
39 $testHandlerClass = eZINI::instance( 'content.ini' )->variable( 'TestingSettings', 'MultivariateTestingHandlerClass' );
40 $testHandler = class_exists( $testHandlerClass ) ? new $testHandlerClass : null;
41
42 if ( $testHandler instanceof ezpMultivariateTestHandlerInterface )
43 return $testHandler;
44
45 return null;
46 }
47
53 public function isEnabled()
54 {
55 return $this->handler->isEnabled();
56 }
57
64 public function execute( $nodeID )
65 {
66 return $this->handler->execute( $nodeID );
67 }
68 }
ezpMultivariateTest
Definition: ezpmultivariatetest.php:13
ezpMultivariateTest\__construct
__construct(ezpMultivariateTestHandlerInterface $handler)
Definition: ezpmultivariatetest.php:26
ezpMultivariateTest\$handler
$handler
Definition: ezpmultivariatetest.php:19
ezpMultivariateTest\getHandler
static getHandler()
Definition: ezpmultivariatetest.php:37
ezpMultivariateTest\execute
execute( $nodeID)
Definition: ezpmultivariatetest.php:64
ezpMultivariateTest\isEnabled
isEnabled()
Definition: ezpmultivariatetest.php:53
ezpMultivariateTestHandlerInterface
Definition: ezpmultivariatetesthandlerinterface.php:13
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.