コード例 #1
0
 /**
  * @see Object\ClassDefinition\Data::getDataForQueryResource
  * @param Country $data
  * @param null|Model\Object\AbstractObject $object
  * @return integer|null
  */
 public function getDataForQueryResource($data, $object = null)
 {
     if ($data instanceof PriceRule) {
         return $data->getId();
     }
     return null;
 }
コード例 #2
0
 /**
  * @see Object\ClassDefinition\Data::getDataForQueryResource
  * @param Country $data
  * @param null|Model\Object\AbstractObject $object
  * @return integer|null
  */
 public function getDataForQueryResource($data, $object = null)
 {
     if ($data instanceof Object\CoreShopOrderState) {
         return $data->getId();
     }
     return null;
 }