<?php
/*"******************************************************************************************************
*   (c) 2004-2006 by MulchProductions, www.mulchprod.de                                                 *
*   (c) 2007-2013 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*	$Id: class_element_row_portal.php 5409 2012-12-30 13:09:07Z sidler $                                      *
********************************************************************************************************/

/**
 * Portal-Part of the row-element
 *
 * @package module_pages
 * @author sidler@mulchprod.de
 */
class class_element_row_portal extends class_element_portal implements  interface_portal_element {

    /**
     * Constructor
     *
     * @param $objElementData
     */
	public function __construct($objElementData) {
		parent::__construct($objElementData);

        $this->setArrModuleEntry("table", _dbprefix_."element_paragraph");
	}


	/**
	 * Does a little "make-up" to the contents
	 *
	 * @return string
	 */
	public function loadData() {

		$strReturn = "";

        $strTemplate = $this->arrElementData["paragraph_template"];

        //fallback
        if($strTemplate == "")
            $strTemplate = "row.tpl";

        $strTemplateID = $this->objTemplate->readTemplate("/element_row/".$strTemplate, "row");

        $strReturn .= $this->fillTemplate($this->arrElementData, $strTemplateID);

		return $strReturn;
	}

}
