@@ 22-34 (lines=13) @@ | ||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 | */ |
|
21 | ||
22 | class Nexcessnet_Turpentine_Model_Config_Select_LoadBalancing { |
|
23 | /** |
|
24 | * @return array |
|
25 | */ |
|
26 | public function toOptionArray() { |
|
27 | $helper = Mage::helper('turpentine'); |
|
28 | return array( |
|
29 | array('value'=>'no', 'label'=>$helper->__('No, use only one backend server')), |
|
30 | array('value'=>'yes', 'label'=>$helper->__('Yes, use load balancing')), |
|
31 | array('value'=>'yes_admin', 'label'=>$helper->__('Yes, with separate settings for Admin')), |
|
32 | ); |
|
33 | } |
|
34 | } |
|
35 |
@@ 22-31 (lines=10) @@ | ||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 | */ |
|
21 | ||
22 | class Nexcessnet_Turpentine_Model_Config_Select_stripWhitespace { |
|
23 | public function toOptionArray() { |
|
24 | $helper = Mage::helper('turpentine'); |
|
25 | return array( |
|
26 | array('value' => 'always', 'label' => $helper->__('Always')), |
|
27 | array('value' => 'apply', 'label' => $helper->__('Only when applying directly to Varnish')), |
|
28 | array('value' => 'never', 'label' => $helper->__('Never')), |
|
29 | ); |
|
30 | } |
|
31 | } |