public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (!isset($this->mArgs['tabindex'])) { $this->mArgs['tabindex'] = 0; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['nowrap'])) { switch ($this->mArgs['nowrap']) { case 'true': case 'false': break; default: $this->mArgs['nowrap'] = 'true'; } } else { $this->mArgs['nowrap'] = 'true'; } if (isset($this->mArgs['align'])) { switch ($this->mArgs['align']) { case 'left': case 'center': case 'right': break; default: $this->mArgs['align'] = 'left'; } } else { $this->mArgs['align'] = 'left'; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['content'])) { $this->mArgs['content'] = addslashes($this->mArgs['content']); } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['menu'])) { $this->mMenu = $this->mArgs['menu']; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['value'])) { $this->mValue = $this->mArgs['value']; } if (isset($this->mArgs['disp'])) { $this->mDisp = $this->mArgs['disp']; } if (isset($this->mArgs['label'])) { $this->mLabel = $this->mArgs['label']; } if (isset($this->mArgs['checked'])) { $this->mChecked = $this->mArgs['checked']; } if (isset($this->mArgs['readonly'])) { $this->mReadOnly = $this->mArgs['readonly']; } if (isset($this->mArgs['tabindex'])) { $this->mTabIndex = $this->mArgs['tabindex']; } if (isset($this->mArgs['hint'])) { $this->mHint = $this->mArgs['hint']; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (!isset($this->mArgs['width'])) { $this->mArgs['width'] = "100%"; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['hint'])) { $this->mHint = $this->mArgs['hint']; } if (isset($this->mArgs['base'])) { $this->mBase = $this->mArgs['base']; } if (isset($this->mArgs['node'])) { $this->mNode = $this->mArgs['node']; } if (isset($this->mArgs['disp'])) { $this->mDisp = $this->mArgs['disp']; } if (isset($this->mArgs['language'])) { $this->mLanguage = $this->mArgs['language']; } if (isset($this->mArgs['width']) and strlen($this->mArgs['width'])) { $this->mWidth = $this->mArgs['width']; } if (isset($this->mArgs['height']) and strlen($this->mArgs['height'])) { $this->mHeight = $this->mArgs['height']; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); $tmp_sess = $this->RetrieveSession(); if (isset($this->mArgs['elements'])) { $this->mElements = $this->mArgs['elements']; } if (isset($this->mArgs['width'])) { $this->mWidth = $this->mArgs['width']; } if (isset($this->mArgs['activegroup']) and strlen($this->mArgs['activegroup'])) { $this->mActiveGroup = $this->mArgs['activegroup']; } else { $this->mActiveGroup = $tmp_sess['activegroup']; } if (isset($this->mArgs['target'])) { $this->mTarget = $this->mArgs['target']; } if (isset($this->mArgs['allgroupsactive'])) { $this->mAllGroupsActive = $this->mArgs['allgroupsactive']; } if (isset($this->mArgs['activegroup']) and strlen($this->mActiveGroup)) { $this->StoreSession(array('activegroup' => $this->mActiveGroup)); } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['value'])) { $this->mValue = $this->mArgs["value"]; } if (isset($this->mArgs['disp'])) { $this->mDisp = $this->mArgs["disp"]; } if (isset($this->mArgs['label'])) { $this->mLabel = $this->mArgs["label"]; } if (isset($this->mArgs['image'])) { $this->mImage = $this->mArgs["image"]; } if (isset($this->mArgs['hint'])) { $this->mHint = $this->mArgs["hint"]; } if (isset($this->mArgs['tabindex'])) { $this->mTabIndex = $this->mArgs['tabindex']; } if (isset($this->mArgs['type']) and ($this->mArgs["type"] == "submit" or $this->mArgs["type"] == "reset")) { $this->mType = $this->mArgs["type"]; } }
/** * Costruct: * @param string $elemName name of element * @param string $elemArgs array witch params * @param string $elemTheme theme of element * @param string $dispEvents dispacer of events */ public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); $this->mId = $this->mArgs['id']; $this->mValue = $this->mArgs['value']; if (isset($this->mArgs['height'])) { $this->mHeight = $this->mArgs['height']; } if (isset($this->mArgs['width'])) { $this->mWidth = $this->mArgs['width']; } // default components of the toolbar are true if (isset($this->mArgs['basicstyles'])) { if ($this->mArgs['basicstyles'] === 'false') { $this->mBasicstyles = false; } } if (isset($this->mArgs['paragraph'])) { if ($this->mArgs['paragraph'] === 'false') { $this->mParagraph = false; } } if (isset($this->mArgs['links'])) { if ($this->mArgs['links'] === 'false') { $this->mLinks = false; } } if (isset($this->mArgs['inline'])) { if ($this->mArgs['inline'] === 'true') { $this->mInline = true; } } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); $container = \Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer'); if (isset($this->mArgs['hint'])) { $this->mHint = $this->mArgs['hint']; } if (isset($this->mArgs['value'])) { $this->mValue = $this->mArgs['value']; } if (isset($this->mArgs['disp'])) { $this->mDisp = $this->mArgs['disp']; } if (isset($this->mArgs['tabindex'])) { $this->mTabIndex = $this->mArgs['tabindex']; } if (isset($this->mArgs['country']) and strlen($this->mArgs['country'])) { $this->mCountry = $this->mArgs['country']; } else { if ($container->isDomainStarted()) { $this->mCountry = $container->getCurrentUser()->getCountry(); } else { $this->mCountry = $container->getCountry(); } } if (isset($this->mArgs['language']) and strlen($this->mArgs['language'])) { $this->mLanguage = $this->mArgs['language']; } else { if ($container->isDomainStarted()) { $this->mLanguage = $container->getCurrentUser()->getLanguage(); } else { $this->mLanguage = $container->getLanguage(); } } $this->mLocaleCountryHandler = new \Innomatic\Locale\LocaleCountry($this->mCountry); $this->mLocaleHandler = new \Innomatic\Locale\LocaleCatalog('innomatic::wui', $this->mLanguage); if (isset($this->mArgs['readonly'])) { $this->mReadOnly = $this->mArgs['readonly']; } if (isset($this->mArgs['type'])) { switch ($this->mArgs['type']) { case 'date': $this->mSize = 10; $this->mMaxLength = 10; $this->mType = $this->mArgs['type']; break; case 'time': $this->mSize = 8; $this->mMaxLength = 8; $this->mType = $this->mArgs['type']; break; case 'shorttime': $this->mSize = 5; $this->mMaxLength = 5; $this->mType = $this->mArgs['type']; break; } } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); $tempSession = $this->retrieveSession(); if (!isset($this->mArgs['value'])) { $this->mArgs['value'] = $tempSession['value']; } $this->storeSession(array('value' => $this->mArgs['value'])); $this->mValue =& $this->mArgs['value']; }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['title'])) { $this->mArgs['title'] = $this->mArgs['title']; } if (isset($this->mArgs['icon']) and strlen($this->mArgs['icon'])) { $this->mIcon = $this->mArgs['icon']; } else { $this->mIcon = 'empty_ascii'; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['definitionfile']) and file_exists($this->mArgs['definitionfile'])) { $this->mDefinitionFile = $this->mArgs['definitionfile']; if (file_exists($this->mDefinitionFile)) { $this->mDefinition = file_get_contents($this->mDefinitionFile); } } else { if (isset($this->mArgs['definition'])) { $this->mDefinition =& $this->mArgs['definition']; } } // Adds default UTF8 encoding if no encoding has been defined in the xml text. if (strlen($this->mDefinition) and substr($this->mDefinition, 0, 5) != '<?xml') { $this->mDefinition = '<?xml version="1.0" encoding="utf-8" ?>' . $this->mDefinition; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (!isset($this->mArgs['tabindex'])) { $this->mArgs['tabindex'] = 0; } if (!isset($this->mArgs['bgcolor']) or !strlen($this->mArgs['bgcolor'])) { $this->mArgs['bgcolor'] = ''; } if (isset($this->mArgs['autocomplete']) and $this->mArgs['autocomplete'] == 'true') { $this->mArgs['autocomplete'] = true; } else { $this->mArgs['autocomplete'] = false; } if (!isset($this->mArgs['autocompleteminlength'])) { $this->mArgs['autocompleteminlength'] = 3; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (!isset($this->mArgs['tabindex'])) { $this->mArgs['tabindex'] = 0; } if ($this->mArgs['size'] < 2) { $this->mArgs['size'] = 2; } if (isset($this->mArgs['default']) and is_array($this->mArgs['default'])) { } else { if (isset($this->mArgs['default'])) { $def = $this->mArgs['default']; $this->mArgs['default'] = array(); $this->mArgs['default'][] = $def; } } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (!isset($this->mArgs['label'])) { $this->mArgs['label'] = isset($this->mArgs['link']) ? $this->mArgs['label'] = $this->mArgs['link'] : ''; } if (isset($this->mArgs['nowrap']) and ($this->mArgs['nowrap'] == 'true' or $this->mArgs['nowrap'] == 'false')) { $this->mArgs['nowrap'] = $this->mArgs['nowrap']; } else { $this->mArgs['nowrap'] = 'true'; } if (isset($this->mArgs['compact'])) { $this->mArgs['compact'] = $this->mArgs['compact'] == 'true' ? 'true' : 'false'; } else { $this->mArgs['compact'] = 'false'; } if (isset($this->mArgs['bold'])) { $this->mArgs['bold'] = $this->mArgs['bold'] == 'true' ? 'true' : 'false'; } else { $this->mArgs['bold'] = 'false'; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); if (isset($this->mArgs['source'])) { $this->mSource = $this->mArgs['source']; } if (isset($this->mArgs['scrolling']) and ($elemArgs['scrolling'] == 'true' or $elemArgs['scrolling'] == 'false' or $elemArgs['scrolling'] == 'auto')) { $this->mScrolling = $this->mArgs['scrolling']; } else { $this->mScrolling = 'auto'; } if (isset($this->mArgs['marginwidth'])) { $this->mMarginWidth = $this->mArgs['marginwidth']; } if (isset($this->mArgs['marginheight'])) { $this->mMarginHeight = $this->mArgs['marginheight']; } if (isset($this->mArgs['width'])) { $this->mWidth = $this->mArgs['width']; } if (isset($this->mArgs['height'])) { $this->mHeight = $this->mArgs['height']; } }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); }
public function __construct($elemName, $elemArgs = '', $elemTheme = '', $dispEvents = '') { parent::__construct($elemName, $elemArgs, $elemTheme, $dispEvents); $iconsBase = 'icons'; if (isset($this->mArgs['mainaction'])) { $this->mArgs['mainaction'] = $this->mArgs['mainaction'] == 'true' ? 'true' : 'false'; } else { $this->mArgs['mainaction'] = 'false'; } if (isset($this->mArgs['dangeraction'])) { $this->mArgs['dangeraction'] = $this->mArgs['dangeraction'] == 'true' ? 'true' : 'false'; } else { $this->mArgs['dangeraction'] = 'false'; } if ($this->mArgs['mainaction'] == 'true' or $this->mArgs['dangeraction'] == 'true') { $iconsBase = 'light'; } if (isset($this->mArgs['compact'])) { $this->mArgs['compact'] = $this->mArgs['compact'] == 'true' ? 'true' : 'false'; } else { $this->mArgs['compact'] = 'false'; } if (!isset($this->mArgs['themeimagetype']) or !strlen($this->mArgs['themeimagetype'])) { $this->mArgs['themeimagetype'] = 'actions'; } if (isset($this->mArgs['themeimage']) and strlen($this->mArgs['themeimage'])) { if (isset($this->mThemeHandler->mIconsSet[$iconsBase][$this->mArgs['themeimage']]['base']) and file_exists(\Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getHome() . 'shared/icons/' . $this->mThemeHandler->mIconsSet[$iconsBase][$this->mArgs['themeimage']]['base'] . '/' . $iconsBase . '/' . $this->mThemeHandler->mIconsSet[$iconsBase][$this->mArgs['themeimage']]['file'])) { $this->mArgs['image'] = $this->mThemeHandler->mIconsBase . $this->mThemeHandler->mIconsSet[$iconsBase][$this->mArgs['themeimage']]['base'] . '/' . $iconsBase . '/' . $this->mThemeHandler->mIconsSet[$iconsBase][$this->mArgs['themeimage']]['file']; } elseif (isset($this->mThemeHandler->mIconsSet[$this->mArgs['themeimagetype']][$this->mArgs['themeimage']])) { // Fallback to old icon set style $this->mArgs['image'] = $this->mThemeHandler->mIconsBase . $this->mThemeHandler->mIconsSet[$this->mArgs['themeimagetype']][$this->mArgs['themeimage']]['base'] . '/' . $this->mArgs['themeimagetype'] . '/' . $this->mThemeHandler->mIconsSet[$this->mArgs['themeimagetype']][$this->mArgs['themeimage']]['file']; } } if (isset($this->mArgs['confirmmessage'])) { $this->mArgs['confirmmessage'] = addslashes($this->mArgs['confirmmessage']); } if (isset($this->mArgs['disabled']) and ($this->mArgs['disabled'] == 'true' or $this->mArgs['disabled'] == 'false')) { $this->mArgs['disabled'] = $this->mArgs['disabled']; } else { $this->mArgs['disabled'] = 'false'; } if (isset($this->mArgs['nowrap']) and ($this->mArgs['nowrap'] == 'true' or $this->mArgs['nowrap'] == 'false')) { $this->mArgs['nowrap'] = $this->mArgs['nowrap']; } else { $this->mArgs['nowrap'] = 'true'; } if (!isset($this->mArgs['action']) or !strlen($this->mArgs['action'])) { $this->mArgs['disabled'] = 'true'; } if (isset($this->mArgs['target'])) { if ($this->mArgs['target'] == 'main' or $this->mArgs['target'] == 'header' or $this->mArgs['target'] == 'menu') { $this->mArgs['target'] = 'parent.' . $this->mArgs['target']; } if ($this->mArgs['target'] == '_top') { $this->mArgs['target'] = 'top'; } } if (!isset($this->mArgs['highlight'])) { $this->mArgs['highlight'] = 'true'; } if (isset($this->mArgs['width']) and !is_numeric($this->mArgs['width'])) { unset($this->mArgs['width']); } if (isset($this->mArgs['height']) and !is_numeric($this->mArgs['height'])) { unset($this->mArgs['height']); } }