protected function actionCreateObject()
	{
		$blockCenter = new XmlBlockCollection($this->_myWords->Value("OBJECT"), BlockPosition::Center);

		$breakLine = new XmlnukeBreakLine();

		$firstParagraph = new XmlParagraphCollection();
		$firstParagraph->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("OBJECTTEXT1")));
		$firstParagraph->addXmlnukeObject($breakLine);
		$firstParagraph->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("OBJECTTEXT2"), true, true, true, true));
		$firstParagraph->addXmlnukeObject($breakLine);
		$firstParagraph->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("OBJECTTEXT3")));

		$secondParagraph = new XmlParagraphCollection();
		$secondParagraph->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("OBJECTTEXT4")));
		$secondParagraph->addXmlnukeObject($breakLine);
		$secondParagraph->addXmlnukeObject($breakLine);

		$xmlnukeImage = new XmlnukeImage("common/imgs/logo_xmlnuke.gif");
		$link = new XmlAnchorCollection("engine:xmlnuke", "");
		$link->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("CLICK")." -->"));
		$link->addXmlnukeObject($breakLine);
		$link->addXmlnukeObject($xmlnukeImage);
		$link->addXmlnukeObject($breakLine);
		$link->addXmlnukeObject(new XmlnukeText(" -- ".$this->_myWords->Value("CLICK")));
		$secondParagraph->addXmlnukeObject($link);
		$secondParagraph->addXmlnukeObject($breakLine);

		$thirdParagraph = new XmlParagraphCollection();
		$arrayOptions = array();
		$arrayOptions["OPTION1"] =  $this->_myWords->Value("OPTIONTEST1");
		$arrayOptions["OPTION2"] =  $this->_myWords->Value("OPTIONTEST2");
		$arrayOptions["OPTION3"] =  $this->_myWords->Value("OPTIONTEST3");
		$arrayOptions["OPTION4"] =  $this->_myWords->Value("OPTIONTEST4");
		$thirdParagraph->addXmlnukeObject(new XmlEasyList(EasyListType::UNORDEREDLIST, "name", "caption", $arrayOptions, "OP3"));

		$blockCenter->addXmlnukeObject($firstParagraph);
		$blockCenter->addXmlnukeObject($secondParagraph);
		$blockCenter->addXmlnukeObject($thirdParagraph);

		$blockLeft = new XmlBlockCollection($this->_myWords->Value("BLOCKLEFT"), BlockPosition::Left);
		$blockLeft->addXmlnukeObject($firstParagraph);

		$blockRight = new XmlBlockCollection($this->_myWords->Value("BLOCKRIGHT"), BlockPosition::Right);
		$blockRight->addXmlnukeObject($firstParagraph);

		$this->_document->addXmlnukeObject($blockCenter);
		$this->_document->addXmlnukeObject($blockLeft);
		$this->_document->addXmlnukeObject($blockRight);
	}
protected function actionCreateObject()
	{
		$blockCenter = new XmlBlockCollection($this->_myWords->Value("OBJECT"), BlockPosition::Center);

		$breakLine = new XmlnukeBreakLine();

		$firstParagraph = new XmlParagraphCollection();
		$firstParagraph->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("OBJECTTEXT1")));
		$firstParagraph->addXmlnukeObject($breakLine);
		$firstParagraph->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("OBJECTTEXT2"), true, true, true, true));
		$firstParagraph->addXmlnukeObject($breakLine);
		$firstParagraph->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("OBJECTTEXT3")));

		$secondParagraph = new XmlParagraphCollection();
		$secondParagraph->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("OBJECTTEXT4")));
		$secondParagraph->addXmlnukeObject($breakLine);
		$secondParagraph->addXmlnukeObject($breakLine);

		$xmlnukeImage = new XmlnukeImage("common/imgs/logo_xmlnuke.gif");
		$link = new XmlAnchorCollection("engine:xmlnuke", "");
		$link->addXmlnukeObject(new XmlnukeText($this->_myWords->Value("CLICK")." -->"));
		$link->addXmlnukeObject($breakLine);
		$link->addXmlnukeObject($xmlnukeImage);
		$link->addXmlnukeObject($breakLine);
		$link->addXmlnukeObject(new XmlnukeText(" -- ".$this->_myWords->Value("CLICK")));
		$secondParagraph->addXmlnukeObject($link);
		$secondParagraph->addXmlnukeObject($breakLine);

		$thirdParagraph = new XmlParagraphCollection();
		$arrayOptions = array();
		$arrayOptions["OPTION1"] =  $this->_myWords->Value("OPTIONTEST1");
		$arrayOptions["OPTION2"] =  $this->_myWords->Value("OPTIONTEST2");
		$arrayOptions["OPTION3"] =  $this->_myWords->Value("OPTIONTEST3");
		$arrayOptions["OPTION4"] =  $this->_myWords->Value("OPTIONTEST4");
		$thirdParagraph->addXmlnukeObject(new XmlEasyList(EasyListType::UNORDEREDLIST, "name", "caption", $arrayOptions, "OP3"));

		$blockCenter->addXmlnukeObject($firstParagraph);
		$blockCenter->addXmlnukeObject($secondParagraph);
		$blockCenter->addXmlnukeObject($thirdParagraph);

		$blockLeft = new XmlBlockCollection($this->_myWords->Value("BLOCKLEFT"), BlockPosition::Left);
		$blockLeft->addXmlnukeObject($firstParagraph);

		$blockRight = new XmlBlockCollection($this->_myWords->Value("BLOCKRIGHT"), BlockPosition::Right);
		$blockRight->addXmlnukeObject($firstParagraph);

		$this->_document->addXmlnukeObject($blockCenter);
		$this->_document->addXmlnukeObject($blockLeft);
		$this->_document->addXmlnukeObject($blockRight);
	}
protected function actionCreateObject ( ) { $ blockCenter = new XmlBlockCollection ( $ this -> _myWords -> Value ( "OBJECT" ) , BlockPosition :: Center ) ; $ breakLine = new XmlnukeBreakLine ( ) ; $ firstParagraph = new XmlParagraphCollection ( ) ; $ firstParagraph -> addXmlnukeObject ( new XmlnukeText ( $ this -> _myWords -> Value ( "OBJECTTEXT1" ) ) ) ; $ firstParagraph -> addXmlnukeObject ( $ breakLine ) ; $ firstParagraph -> addXmlnukeObject ( new XmlnukeText ( $ this -> _myWords -> Value ( "OBJECTTEXT2" ) , true , true , true , true ) ) ; $ firstParagraph -> addXmlnukeObject ( $ breakLine ) ; $ firstParagraph -> addXmlnukeObject ( new XmlnukeText ( $ this -> _myWords -> Value ( "OBJECTTEXT3" ) ) ) ; $ secondParagraph = new XmlParagraphCollection ( ) ; $ secondParagraph -> addXmlnukeObject ( new XmlnukeText ( $ this -> _myWords -> Value ( "OBJECTTEXT4" ) ) ) ; $ secondParagraph -> addXmlnukeObject ( $ breakLine ) ; $ secondParagraph -> addXmlnukeObject ( $ breakLine ) ; $ xmlnukeImage = new XmlnukeImage ( "common/imgs/logo_xmlnuke.gif" ) ; $ link = new XmlAnchorCollection ( "engine:xmlnuke" , "" ) ; $ link -> addXmlnukeObject ( new XmlnukeText ( $ this -> _myWords -> Value ( "CLICK" ) . " -->" ) ) ; $ link -> addXmlnukeObject ( $ breakLine ) ; $ link -> addXmlnukeObject ( $ xmlnukeImage ) ; $ link -> addXmlnukeObject ( $ breakLine ) ; $ link -> addXmlnukeObject ( new XmlnukeText ( " -- " . $ this -> _myWords -> Value ( "CLICK" ) ) ) ; $ secondParagraph -> addXmlnukeObject ( $ link ) ; $ secondParagraph -> addXmlnukeObject ( $ breakLine ) ; $ thirdParagraph = new XmlParagraphCollection ( ) ; $ arrayOptions = array ( ) ; $ arrayOptions [ "OPTION1" ] = $ this -> _myWords -> Value ( "OPTIONTEST1" ) ; $ arrayOptions [ "OPTION2" ] = $ this -> _myWords -> Value ( "OPTIONTEST2" ) ; $ arrayOptions [ "OPTION3" ] = $ this -> _myWords -> Value ( "OPTIONTEST3" ) ; $ arrayOptions [ "OPTION4" ] = $ this -> _myWords -> Value ( "OPTIONTEST4" ) ; $ thirdParagraph -> addXmlnukeObject ( new XmlEasyList ( EasyListType :: UNORDEREDLIST , "name" , "caption" , $ arrayOptions , "OP3" ) ) ; $ blockCenter -> addXmlnukeObject ( $ firstParagraph ) ; $ blockCenter -> addXmlnukeObject ( $ secondParagraph ) ; $ blockCenter -> addXmlnukeObject ( $ thirdParagraph ) ; $ blockLeft = new XmlBlockCollection ( $ this -> _myWords -> Value ( "BLOCKLEFT" ) , BlockPosition :: Left ) ; $ blockLeft -> addXmlnukeObject ( $ firstParagraph ) ; $ blockRight = new XmlBlockCollection ( $ this -> _myWords -> Value ( "BLOCKRIGHT" ) , BlockPosition :: Right ) ; $ blockRight -> addXmlnukeObject ( $ firstParagraph ) ; $ this -> _document -> addXmlnukeObject ( $ blockCenter ) ; $ this -> _document -> addXmlnukeObject ( $ blockLeft ) ; $ this -> _document -> addXmlnukeObject ( $ blockRight ) ; }
Show the Create Object Exemple
Show the Create Object Exemple