示例#1
0
 /**
  * Retrieve form type entity types
  *
  * @param Mage_Eav_Model_Form_Type $object
  * @return array
  */
 public function getEntityTypes($object)
 {
     if (!$object->getId()) {
         return array();
     }
     $select = $this->_getReadAdapter()->select()->from($this->getTable('eav/form_type_entity'), 'entity_type_id')->where('type_id=?', $object->getId());
     return $this->_getReadAdapter()->fetchCol($select);
 }
 /**
  * Retrieve form type entity types
  *
  * @param Mage_Eav_Model_Form_Type $object
  * @return array
  */
 public function getEntityTypes($object)
 {
     $objectId = $object->getId();
     if (!$objectId) {
         return array();
     }
     $adapter = $this->_getReadAdapter();
     $bind = array(':type_id' => $objectId);
     $select = $adapter->select()->from($this->getTable('eav/form_type_entity'), 'entity_type_id')->where('type_id = :type_id');
     return $adapter->fetchCol($select, $bind);
 }