WYSIWYG EDITOR Variable Picker Layout

WYSIWYG EDITOR Variable Picker Layout
This commit is contained in:
norahmollo
2012-11-23 14:05:44 +00:00
parent 8242708bba
commit b50e802391
10 changed files with 312 additions and 58 deletions

View File

@@ -207,7 +207,7 @@ class XmlForm_Field_TextareaPM extends XmlForm_Field
* @param eter string owner
* @return string
*/
public function renderGrid ($values = null, $owner)
public function renderGrid ($owner, $values = null)
{
$result = array ();
$r = 1;
@@ -320,7 +320,7 @@ class XmlForm_Field_hours extends XmlForm_Field_SimpleText
* @param eter string owner
* @return string
*/
public function renderGrid ($values = array(), $owner)
public function renderGrid ($values = array(),$owner)
{
$result = array ();
$r = 1;
@@ -380,17 +380,14 @@ function getDynaformsVars ($sProcessUID, $bSystemVars = true, $bIncMulSelFields
if ($bSystemVars) {
$aAux = G::getSystemConstants();
foreach ($aAux as $sName => $sValue) {
$aFields[] = array ('sName' => $sName,'sType' => 'system','sLabel' => 'System variable'
);
$aFields[] = array ('sName' => $sName,'sType' => 'system','sLabel' => 'System variable');
}
//we're adding the ping variable to the system list
$aFields[] = array ('sName' => 'PIN','sType' => 'system','sLabel' => 'System variable'
);
}
$aInvalidTypes = array ('title','subtitle','link','file','button','reset','submit','javascript'
);
$aMultipleSelectionFields = array ('listbox','checkgroup','grid'
);
$aInvalidTypes = array ('title','subtitle','link','file','button','reset','submit','javascript');
$aMultipleSelectionFields = array ('listbox','checkgroup','grid');
if ($bIncMulSelFields != 0) {
$aInvalidTypes = array_merge( $aInvalidTypes, $aMultipleSelectionFields );
}