<?php
/**
 * FCKeditor adapter for XOOPS
 *
 * @copyright	The XOOPS project http://www.xoops.org/
 * @license		http://www.fsf.org/copyleft/gpl.html GNU public license
 * @author		Taiwen Jiang (phppp or D.J.) <php_pp@hotmail.com>
 * @since		4.00
 * @version		$Id: dhtmltextarea.php,v 1.1 2007/06/05 14:44:26 marcan Exp $
 * @package		xoopseditor
 */
if (!defined("XOOPS_ROOT_PATH")) {
    die("XOOPS root path not defined");
}

require_once XOOPS_ROOT_PATH."/class/xoopsform/formdhtmltextarea.php";

/**
 * Pseudo class
 *
 * @author	    phppp (D.J.)
 * @copyright	copyright (c) 2005 XOOPS.org
 */

class FormDhtmlTextArea extends XoopsFormDhtmlTextArea
{
	/**
	 * Constructor
	 *
     * @param	array   $configs  Editor Options
     * @param	binary 	$checkCompatible  true - return false on failure
	 */
	function FormDhtmlTextArea($configs, $checkCompatible = false)
	{
		if(!empty($configs)) {
			foreach($configs as $key => $val){
				${$key} = $val;
				$this->$key = $val;
			}
		}
		$value = isset($value)? $value : "";
		$rows = isset($rows)? $rows : 5;
		$cols = isset($cols)? $cols : 50;
		$hiddentext = empty($hiddentext)? "xoopsHiddenText" : $hiddentext;
		$this->XoopsFormDhtmlTextArea(@$caption, $name, $value, $rows, $cols, $hiddentext);
	}
}
?>