init_tags(); $this->init_shops(); $this->init_details(); $this->init_relations(); } /** * Check if this simple product is equal to the other one. * * @since 0.8 * @param mixed $other * @return bool */ public function is_equal_to($other) { return $other instanceof self && parent::is_equal_to($other) && ($this->has_excerpt() && $this->get_excerpt()->is_equal_to($other->get_excerpt()) || !$other->has_excerpt()) && ($this->has_content() && $this->get_content()->is_equal_to($other->get_content()) || !$other->has_content()) && $this->get_tags() == $other->get_tags() && $this->get_shops() == $other->get_shops() && $this->get_details() == $other->get_details() && $this->get_related_products() == $other->get_related_products() && $this->get_related_accessories() == $other->get_related_accessories() && ($this->has_review() && $this->get_review()->is_equal_to($other->get_review()) || !$other->has_review()); } }