Beispiel #1
0
 /**
  * Gets the default send limit for a post
  *
  * @param Bronto_Reviews_Model_Post_Purchase $post
  * @param int $storeId
  * @return int
  */
 public function getDefaultSendLimit($post, $storeId = 0)
 {
     if (is_null($post->getSendLimit())) {
         return $this->getPostSendLimit($post->getPostType(), 'store', $storeId);
     }
     return (int) $post->getSendLimit();
 }
Beispiel #2
0
 /**
  * Gets form data values from object
  *
  * @param Bronto_Reviews_Model_Post_Purchase $post
  * @return array
  */
 protected function _productFormData($post)
 {
     $data = array();
     foreach ($post->getData() as $key => $value) {
         $data["{$post->getPostType()}_{$key}"] = $value;
     }
     return $data;
 }