本文整理匯總了PHP中Varien_Data_Form_Element_Select::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Varien_Data_Form_Element_Select::__construct方法的具體用法?PHP Varien_Data_Form_Element_Select::__construct怎麽用?PHP Varien_Data_Form_Element_Select::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Varien_Data_Form_Element_Select
的用法示例。
在下文中一共展示了Varien_Data_Form_Element_Select::__construct方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct(array $data = array())
{
$this->_qty = isset($data['qty']) ? $data['qty'] : $this->_createQtyElement();
unset($data['qty']);
parent::__construct($data);
$this->setName($data['name']);
}
示例2: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$values = array();
$values['default'] = 'Default';
for ($i = 8; $i <= 72; $i++) {
$values[$i . 'px'] = $i . 'px';
}
$this->setValues($values);
}
示例3: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$values = array();
$values['default'] = 'Default';
$values['normal'] = 'Normal';
$values['lighter'] = 'Lighter';
$values['bold'] = 'Bold';
$values['bolder'] = 'Bolder';
$this->setValues($values);
}
示例4: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$values = array();
$values['default'] = 'Default';
$values['h1'] = 'H1';
$values['h2'] = 'H2';
$values['h3'] = 'H3';
$values['h4'] = 'H4';
$values['h5'] = 'H5';
$values['h6'] = 'H6';
$this->setValues($values);
}
示例5: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
$this->setValues(array(array('label' => Mage::helper('catalog')->__('No'), 'value' => 0), array('label' => Mage::helper('catalog')->__('Yes'), 'value' => 1)));
}
示例6: __construct
/**
* Prepare default SELECT values
*
* @param array $attributes
*/
public function __construct($attributes = array())
{
parent::__construct($attributes);
$this->setValues(array(array('label' => Mage::helper('Mage_Adminhtml_Helper_Data')->__('No'), 'value' => '0'), array('label' => Mage::helper('Mage_Adminhtml_Helper_Data')->__('Yes'), 'value' => 1)));
}
示例7: __construct
public function __construct($attributes = array())
{
parent::__construct($attributes);
}