Source for file DBMS_FIELD_HTMLFCKEDITOR.phpclass
Documentation is available at DBMS_FIELD_HTMLFCKEDITOR.phpclass
* Class file DBMS_FIELD_HTMLFCKEDITOR.phpclass
* @project Open CSP-Management
* @author Peter Krebs <p.krebs@lvus.at>
* @copyright © 2002-2005 by LVUS
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
if (empty($GLOBALS['OCSP']['DBMSFLD_PATH'])) $GLOBALS['OCSP']['DBMSFLD_PATH']=
dirname(__FILE__
).
"/";
require_once dirname("__FILE__").
"/DBMS_FIELD_HTMLCODE.phpclass";
* Class DBMS_FIELD_HTMLFCKEDITOR
* @project Open CSP-Management
* @author Peter Krebs <p.krebs@lvus.at>
* @copyright © 2002-2005 by LVUS
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @var string $fixedEditor if (!empty) user can not edit editorUrl
* @var int fckHeight inline Editor height
* source file of the class
* @var string $classSrcFile
* echos input form for field definition
* @param bool $showSize show size and maxlength input
function editTblForm($showSize=
FALSE,$allowHTML=
TRUE) {
* saves the field definition from $_POST array
echo
"<p><b>DBMS_FIELD_HTMLFCKEDITOR::save()<b> (".
get_class($this).
"/".
$this->myName.
")</p>";
$this->editorUrl=
$GLOBALS['PROJECT']['SYSTEMURL'].
"/editors/FCKeditor/";
* returns a string with the HTML input-tag for the field
* @param string $aValue the value to show
* @param string $arrName name of the form array used in name=
* @param string $nameAdd add string to the field name
* @version pk-03-11-27 layout changed
* @version pk-05-02-08 $nameAdd added
function getInputTag($aValue,$arrName=
"DBVAL",$nameAdd=
"",$debug=
FALSE) {
if ($debug) echo
"<p><b>DBMS_FIELD_HTMLFCKEDITOR::getInputTag(\$aValue,$arrName,$nameAdd,...)</b> (".
get_class($this).
"/".
$this->myName.
")</p>";
<script type=\"text/javascript\" src=\"".
$GLOBALS['PROJECT']['SYSTEMURL'].
"editors/FCKeditor/fckeditor.js\"></script>
<script type=\"text/javascript\">
/* openCSP overwrite FCKeditor config */
function FCKeditor_OnComplete( editorInstance )
window.status = editorInstance.Description ;
require_once $GLOBALS['OCSP']['PHPINCPATH'].
"common/pcf.phpinc";
<script type=\"text/javascript\">
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
var sBasePath = '".
$GLOBALS['PROJECT']['SYSTEMURL'].
"editors/FCKeditor/';
var oFCKeditor = new FCKeditor('".
$arrName.
"_".
$this->myName.
"') ;
oFCKeditor.BasePath = sBasePath ;
* echos the field as html code
* @returns boolean true if user input is enabled
function writeField($mode,$aValue=
"",$arrName=
"DBVAL") {
return parent::writeField($mode,$aValue=
"",$arrName=
"DBVAL");
} // end class DBMS_FIELD_HTMLFCKEDITOR
Documentation generated on Thu, 08 Jan 2009 17:41:52 +0100 by phpDocumentor 1.4.0a2