本文整理汇总了PHP中Mage_Core_Model_Mysql4_Abstract::_afterLoad方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Mysql4_Abstract::_afterLoad方法的具体用法?PHP Mage_Core_Model_Mysql4_Abstract::_afterLoad怎么用?PHP Mage_Core_Model_Mysql4_Abstract::_afterLoad使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Mysql4_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Mysql4_Abstract::_afterLoad方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
/** @var Mirasvit_Helpdesk_Model_Status $object */
if (!$object->getIsMassDelete()) {
}
return parent::_afterLoad($object);
}
示例2: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
if (!$object->getIsMassDelete()) {
$object = $this->loadStore($object);
}
return parent::_afterLoad($object);
}
示例3: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
parent::_afterLoad($object);
$id = $object->getId();
if (!$id) {
return;
}
$read = $this->_getReadAdapter();
$table = $this->getTable('udropship/shipping_website');
$select = $read->select()->from($table)->where($table . '.shipping_id=?', $id);
if ($result = $read->fetchAll($select)) {
foreach ($result as $row) {
$websites = $object->getWebsiteIds();
if (!$websites) {
$websites = array();
}
$websites[] = $row['website_id'];
$object->setWebsiteIds($websites);
}
}
$table = $this->getTable('udropship/shipping_method');
$select = $read->select()->from($table)->where($table . '.shipping_id=?', $id);
if ($result = $read->fetchAll($select)) {
foreach ($result as $row) {
$methods = $object->getSystemMethods();
if (!$methods) {
$methods = array();
}
$methods[$row['carrier_code']] = $row['method_code'];
$object->setSystemMethods($methods);
}
}
}
示例4: _afterLoad
/**
*
* @param Mage_Core_Model_Abstract $object
*/
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
//if (!$object->getIsMassDelete()) {
// $object = $this->__loadImage($object);
// }
return parent::_afterLoad($object);
}
示例5: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
if ($object->getData('mapping_serialized')) {
$object->setMapping(unserialize($object->getData('mapping_serialized')));
}
return parent::_afterLoad($object);
}
示例6: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
if ($object->getId()) {
$stores = $this->listStoreIds($object->getId());
$object->setData('store_id', $stores);
}
return parent::_afterLoad($object);
}
开发者ID:ankita-parashar,项目名称:magento,代码行数:8,代码来源:Magebuzz_Multipleorderemail_Model_Mysql4_Multipleorderemailrule.php
示例7: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
/** @var Mirasvit_Helpdesk_Model_Permission $object */
if (!$object->getIsMassDelete()) {
$this->loadDepartmentIds($object);
}
return parent::_afterLoad($object);
}
示例8: _afterLoad
/**
* Perform operations after object load
*
* @param Mage_Core_Model_Abstract $object
* @return Creativestyle_CheckoutByAmazon_Model_Mysql4_Log_Abstract
*/
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
if ($object->getId()) {
$orders = $this->lookupOrderIds($object->getId());
$object->setData('order_id', $orders);
}
return parent::_afterLoad($object);
}
示例9: _afterLoad
/**
* @param Mirasvit_FeedExport_Model_Feed $object
*
* @return $this
*/
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
Mage::helper('feedexport/format')->expandFormat($object);
$object->setCronDay(explode(',', $object->getCronDay()));
$object->setCronTime(explode(',', $object->getCronTime()));
$this->loadRules($object);
return parent::_afterLoad($object);
}
示例10: _afterLoad
public function _afterLoad(Mage_Core_Model_Abstract $object)
{
$connection = $this->_getReadAdapter();
$select = $connection->select()->from($this->getMainTable(), array('store_id', 'translate'))->where('string=:translate_string');
$translations = $connection->fetchPairs($select, array('translate_string' => $object->getString()));
$object->setStoreTranslations($translations);
return parent::_afterLoad($object);
}
示例11: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
/** @var Mirasvit_Helpdesk_Model_Template $object */
if (!$object->getIsMassDelete()) {
$this->loadStoreIds($object);
}
return parent::_afterLoad($object);
}
示例12: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
if ($object->getStoreIds()) {
$object->setStoreIds(explode(',', $object->getStoreIds()));
} else {
$object->setStoreIds(array(0));
}
return parent::_afterLoad($object);
}
示例13: _afterLoad
/**
* @param Mage_Core_Model_Abstract $object
*
* @return $this|Mage_Core_Model_Resource_Db_Abstract
*/
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
if (strlen($object->getStoreIds()) > 0) {
$object->setStoreIds(array_map('intval', explode(',', $object->getStoreIds())));
} else {
$object->setStoreIds(array());
}
return parent::_afterLoad($object);
}
示例14: _afterLoad
public function _afterLoad(Mage_Core_Model_Abstract $object)
{
parent::_afterLoad($object);
$read = $this->_getReadAdapter();
if ($read) {
$tags = $read->fetchCol('select tag from ' . $this->_tagTable . ' where url_rewrite_id=?', $object->getId());
$object->setTags($tags ? $tags : array());
}
return $this;
}
示例15: _afterLoad
protected function _afterLoad(Mage_Core_Model_Abstract $object)
{
/** @var Mirasvit_Helpdesk_Model_Ticket $object */
if (!$object->getIsMassDelete()) {
$this->loadTagIds($object);
}
if (is_string($object->getChannelData())) {
$object->setChannelData(@unserialize($object->getChannelData()));
}
return parent::_afterLoad($object);
}