OussamaOBO / gshoppingcontent-php

Automatically exported from code.google.com/p/gshoppingcontent-php
Other
0 stars 0 forks source link

Cannot redeclare _GSC_Tags::$image_link in /var/www/GShoppingContent.php on line 504 #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PHP version 5.3.6 on Ubuntu 11.10, I fixed replacing the 504 line with this:

public static $additional_image_link = array(_GSC_Ns::sc, 
'additional_image_link');

And the corresponding functions on the GSC_Product class:

    /**
     * Add an additional image link to the product.
     *
     * @param string $link The link to add.
     * @return DOMElement The element that was created.
     **/
    function addAdditionalImageLink($link) {
        $el = $this->create(_GSC_Tags::$additional_image_link, $link);
        $this->model->appendChild($el);
        return $el;
    }

    /**
     * Clear all the additional image links from this product.
     *
     * @return void
     **/
    function clearAllAdditionalImageLinks() {
        $this->deleteAll(_GSC_Tags::$additional_image_link);
    }

I hope this would be helpfull for you and i'm not causing some much trouble 
with my questions.

I have pending create the patch and submitting, sorry!

Original issue reported on code.google.com by betancou...@gmail.com on 29 Dec 2011 at 10:46

GoogleCodeExporter commented 8 years ago
Resolved in Revision: 27b8dd8df7a2

Original comment by dhermes@google.com on 28 Feb 2012 at 6:17