protected function setAttributes(SimpleXMLElement $element)
    {
        $nb_parent = $this->nb_data_object->getTranslatedObject();
        if ($nb_parent !== null) {
            $nb_language = $nb_parent->getLanguage($this->nb_data_object->getLanguageId());
            $element->addAttribute('lang', $nb_language->grantHash(true));
            $this->putAttributesFromList($element, array(
                'nb_site_target_section_main_image' => 'image'
            ), false);
        }
    }
protected function setAttributes(SimpleXMLElement $element)
    {
        $nb_parent = $this->nb_data_object->getTranslatedObject();
        if ($nb_parent !== null) {
            $nb_language = $nb_parent->getLanguage($this->nb_data_object->getLanguageId());
            $element->addAttribute('lang', $nb_language->grantHash(true));
            $this->putAttributesFromList($element, array(
                'nb_site_target_section_main_image' => 'image'
            ), false);
        }
    }
protected function setAttributes ( SimpleXMLElement $ element ) { $ nb_parent = $ this -> nb_data_object -> getTranslatedObject ( ) ; if ( $ nb_parent !== null ) { $ nb_language = $ nb_parent -> getLanguage ( $ this -> nb_data_object -> getLanguageId ( ) ) ; $ element -> addAttribute ( 'lang' , $ nb_language -> grantHash ( true ) ) ; $ this -> putAttributesFromList ( $ element , array ( 'nb_site_target_section_main_image' => 'image' ) , false ) ; } }
Set default attributes of Site Target Section Language XML Element.
@param SimpleXMLElement $element XML Element to set attributes
Set default attributes of Site Target Section Language XML Element .