本文整理汇总了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());
}