private function prepareCreateXMLTranslationsObject()
    {
        $fragment = new CNabuPHPMethodBuilder(
            $this, 'createXMLTranslationsObject', CNabuPHPMethodBuilder::METHOD_PROTECTED, false, false, false,
            true, 'CNabuXMLTranslationsList'
        );
        $fragment->addComment("Creates the XML instance to manage the translations list of this Element.");
        $fragment->addComment('@return CNabuXMLTranslationsList Returns the created instance.');

        $class_list = nb_strEndsWith($this->class_name, 'Base')
                    ? preg_replace('/Base$/', 'LanguageList', $this->class_name)
                    : $this->class_name . 'LanguageList'
        ;

        $class_list_ns = nb_strEndsWith($this->class_namespace, '\base')
                       ? preg_replace('/\\\\base$/', '', $this->class_namespace)
                       : $this->class_namespace
        ;
        $fragment->addFragment("return new $class_list(\$this->nb_data_object->getTranslations());");

        $this->getDocument()->addUse("\\$class_list_ns\\$class_list");
        $this->getDocument()->addUse('\nabu\xml\lang\CNabuXMLTranslationsList');

        $this->addFragment($fragment);
    }
private function prepareCreateXMLTranslationsObject()
    {
        $fragment = new CNabuPHPMethodBuilder(
            $this, 'createXMLTranslationsObject', CNabuPHPMethodBuilder::METHOD_PROTECTED, false, false, false,
            true, 'CNabuXMLTranslationsList'
        );
        $fragment->addComment("Creates the XML instance to manage the translations list of this Element.");
        $fragment->addComment('@return CNabuXMLTranslationsList Returns the created instance.');

        $class_list = nb_strEndsWith($this->class_name, 'Base')
                    ? preg_replace('/Base$/', 'LanguageList', $this->class_name)
                    : $this->class_name . 'LanguageList'
        ;

        $class_list_ns = nb_strEndsWith($this->class_namespace, '\base')
                       ? preg_replace('/\\\\base$/', '', $this->class_namespace)
                       : $this->class_namespace
        ;
        $fragment->addFragment("return new $class_list(\$this->nb_data_object->getTranslations());");

        $this->getDocument()->addUse("\\$class_list_ns\\$class_list");
        $this->getDocument()->addUse('\nabu\xml\lang\CNabuXMLTranslationsList');

        $this->addFragment($fragment);
    }
private function prepareCreateXMLTranslationsObject ( ) { $ fragment = new CNabuPHPMethodBuilder ( $ this , 'createXMLTranslationsObject' , CNabuPHPMethodBuilder :: METHOD_PROTECTED , false , false , false , true , 'CNabuXMLTranslationsList' ) ; $ fragment -> addComment ( "Creates the XML instance to manage the translations list of this Element." ) ; $ fragment -> addComment ( '@return CNabuXMLTranslationsList Returns the created instance.' ) ; $ class_list = nb_strEndsWith ( $ this -> class_name , 'Base' ) ? preg_replace ( '/Base$/' , 'LanguageList' , $ this -> class_name ) : $ this -> class_name . 'LanguageList' ; $ class_list_ns = nb_strEndsWith ( $ this -> class_namespace , '\base' ) ? preg_replace ( '/\\\\base$/' , '' , $ this -> class_namespace ) : $ this -> class_namespace ; $ fragment -> addFragment ( "return new $class_list(\$this->nb_data_object->getTranslations());" ) ; $ this -> getDocument ( ) -> addUse ( "\\$class_list_ns\\$class_list" ) ; $ this -> getDocument ( ) -> addUse ( '\nabu\xml\lang\CNabuXMLTranslationsList' ) ; $ this -> addFragment ( $ fragment ) ; }
Prepares the createXMLTranslationsObject method.
Prepares the createXMLTranslationsObject method .