本文整理匯總了PHP中Option::getValue方法的典型用法代碼示例。如果您正苦於以下問題:PHP Option::getValue方法的具體用法?PHP Option::getValue怎麽用?PHP Option::getValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Option
的用法示例。
在下文中一共展示了Option::getValue方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getCSSClasses
/**
*
* @return string
*/
protected function getCSSClasses()
{
$classes = array();
$classes[] = 'addthis_toolbox';
$classes[] = 'addthis_default_style';
if ($this->big->getValue()) {
$classes[] = 'addthis_32x32_style';
} else {
$classes[] = 'addthis_16x16_style';
}
$classes[] = 'wfmk_block';
if ($this->right->getValue()) {
$classes[] = 'wfmk_right';
} elseif ($this->left->getValue()) {
$classes[] = 'wfmk_left';
}
if ($this->vertical->getValue()) {
$classes[] = 'vertical ';
} else {
// not vertical, so accepting long and counter options
if ($this->long->getValue()) {
$classes[] = 'long';
}
if ($this->counter->getValue()) {
$classes[] = 'counter';
}
}
return Tools::ArrayToCSSClasses($classes);
}
示例2: getClass
/**
*
* @return string
*/
protected function getClass()
{
if ($this->right->getValue()) {
return 'class="wfmk_right" ';
} elseif ($this->left->getValue()) {
return 'class="wfmk_left" ';
} else {
return '';
}
}
示例3: getCSSClasses
/**
* @return string
*/
public function getCSSClasses()
{
$classes = array();
$classes[] = 'gravatar';
if ($this->right->getValue()) {
$classes[] = 'wfmk_right';
} elseif ($this->left->getValue()) {
$classes[] = 'wfmk_left';
}
return Tools::ArrayToCSSClasses($classes);
}
示例4: getCSSClasses
/**
*
* @return string
*/
protected function getCSSClasses()
{
$classes = array();
$classes[] = 'jamendo';
$classes[] = 'wfmk_block';
if ($this->right->getValue()) {
$classes[] = 'wfmk_right';
} elseif ($this->left->getValue()) {
$classes[] = 'wfmk_left';
}
return Tools::ArrayToCSSClasses($classes);
}
示例5: getCSSClasses
/**
*
* @return string
*/
public function getCSSClasses()
{
$classes = array();
$classes[] = 'dailymotion';
$classes[] = 'wfmk_block';
$classes[] = 'wfmk_frame';
if ($this->right->getValue()) {
$classes[] = 'wfmk_right';
} elseif ($this->left->getValue()) {
$classes[] = 'wfmk_left';
}
return Tools::ArrayToCSSClasses($classes);
}
示例6: getClass
/**
*
* @return string
*/
protected function getClass()
{
$classes = array();
$classes[] = 'wfmk_button';
if ($this->right->getValue()) {
$classes[] = 'wfmk_right';
} elseif ($this->left->getValue()) {
$classes[] = 'wfmk_left';
}
$classes[] = 'wfmk_button_' . $this->color->getOutput();
$classes = Tools::ArrayToCSSClasses($classes);
return 'class="' . $classes . '"';
}
示例7: getFloatClass
/**
*
* @return string
*/
protected function getFloatClass()
{
if ($this->right->getValue()) {
return 'wfmk_right';
} elseif ($this->left->getValue()) {
return 'wfmk_left';
}
}
示例8: it_is_a_correct_object
/** @test */
public function it_is_a_correct_object()
{
$field = new Option('test', 'Test');
$field->render();
$this->assertSame('test', $field->getValue());
$this->assertSame('administr/form::option', $field->getView());
$this->assertInstanceOf(AbstractType::class, $field);
}
示例9: getType
/**
*
* @return string
*/
protected function getType()
{
// "source" parameter is required ; at this point, source->getParameter() will return parameter "source" or "search'
$source = $this->source->getParameter();
if ($source->getName() == "user") {
if ($this->faves->getValue()) {
return 'faves';
} elseif ($this->list->getValue()) {
return 'list';
} elseif ($this->follow->getValue()) {
return 'follow';
} else {
return 'profile';
}
} else {
// $source->getName() == "search"
return 'search';
}
}
示例10: testGetValue
/**
* @covers Phossa\Console\Option::getValue
*/
public function testGetValue()
{
$this->object->setValue('bingo');
$this->assertEquals('bingo', $this->object->getValue());
}