本文整理汇总了PHP中Mage_Core_Model_Resource_Db_Collection_Abstract::_toOptionHash方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_toOptionHash方法的具体用法?PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_toOptionHash怎么用?PHP Mage_Core_Model_Resource_Db_Collection_Abstract::_toOptionHash使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Resource_Db_Collection_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Resource_Db_Collection_Abstract::_toOptionHash方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: toOptionHash
/**
* Convert items array to hash for select options
* array($value => $label)
*
* @return array
*/
public function toOptionHash()
{
return parent::_toOptionHash('staging_item_id', 'name');
}
示例2: _toOptionHash
/**
* get options hash
*
* @access protected
* @param string $valueField
* @param string $labelField
* @return array
* @author Ultimate Module Creator
*/
protected function _toOptionHash($valueField = 'entity_id', $labelField = 'trainevent')
{
return parent::_toOptionHash($valueField, $labelField);
}
示例3: _toOptionHash
/**
* get options hash
* @access protected
* @param string $valueField
* @param string $labelField
* @return array
* @author Ultimate Module Creator
*/
protected function _toOptionHash($valueField = 'entity_id', $labelField = 'batches_name_input')
{
return parent::_toOptionHash($valueField, $labelField);
}
示例4: _toOptionHash
/**
* get options hash
*
* @access protected
* @param string $valueField
* @param string $labelField
* @return array
*
*/
protected function _toOptionHash($valueField = 'entity_id', $labelField = 'log_desc')
{
return parent::_toOptionHash($valueField, $labelField);
}
示例5: toOptionHash
/**
* Retrieve option hash
*
* @return array
*/
public function toOptionHash()
{
return parent::_toOptionHash('status_id', 'status_name');
}
示例6: _toOptionHash
/**
* get options hash
* @access protected
* @param string $valueField
* @param string $labelField
* @return array
*/
protected function _toOptionHash($valueField = 'entity_id', $labelField = 'free_resource')
{
return parent::_toOptionHash($valueField, $labelField);
}
开发者ID:ankita-parashar,项目名称:magento,代码行数:11,代码来源:ICC_Freeresources_Model_Resource_Freeresource_Collection.php
示例7: _toOptionHash
/**
* @inheritdoc
*/
protected function _toOptionHash($valueField = null, $labelField = 'name')
{
if ($valueField === null) {
$valueField = $this->getResource()->getIdFieldName();
if ($valueField === null) {
$valueField = 'id';
}
}
return parent::_toOptionHash($valueField, $labelField);
}
示例8: toOptionHash
/**
* Retreive option hash
*
* @return array
*/
public function toOptionHash()
{
return parent::_toOptionHash('customer_group_id', 'customer_group_code');
}
示例9: _toOptionHash
protected function _toOptionHash($valueField = 'contact_id', $labelField = 'none')
{
return parent::_toOptionHash($valueField, $labelField);
}
示例10: toOptionHash
/**
* Convert collection items to select options hash array
*
* @return array
*/
public function toOptionHash()
{
return parent::_toOptionHash('attribute_set_id', 'attribute_set_name');
}