public function __construct($name) { parent::__construct($name); $this->values = array(); $this->selectedValue = null; $this->displayMode = self::StackedMode; }
public function __construct($name, $size = null, $maxLength = null, $customAttributes = null) { parent::__construct($name, $customAttributes); $this->size = $size; $this->maxLength = $maxLength; $this->passwordMode = false; }
public function __construct($name, $showsTime = false, $format = null, $firstDayOfWeek = 0) { parent::__construct($name); $this->showsTime = $showsTime; if (!isset($format)) { $this->format = $this->showsTime ? 'Y-m-d H:i:s' : 'Y-m-d'; } else { $this->format = $format; } $this->firstDayOfWeek = $firstDayOfWeek; }
public function __construct($name, $emptyValue = '') { parent::__construct($name); $this->values = array(); $this->selectedValue = null; $this->emptyValue = $emptyValue; $this->values[''] = $emptyValue; $this->displayValues = array(); $this->mfuValues = array(); $this->preparedMfuValues = null; }
private function RenderEditor(CustomEditor $editor, $nameInTemplate, $templateFile, $additionalParams = array()) { $validatorsInfo = array(); $validatorsInfo['InputAttributes'] = $editor->GetValidationAttributes(); $validatorsInfo['InputAttributes'] .= StringUtils::Format(' data-legacy-field-name="%s" data-pgui-legacy-validate="true"', $editor->GetFieldName()); $this->DisplayTemplate(Path::Combine('editors', $templateFile), array($nameInTemplate => $editor), array_merge(array('Validators' => $validatorsInfo, $nameInTemplate == 'Editor' ? 'EditControl' : 'Editor' => $editor->GetViewData()), $additionalParams)); }
/** @param string $name */ public function __construct($name) { parent::__construct($name); $this->values = array(); $this->selectedValues = array(); }
/** * @param string $name * @param LinkBuilder $linkBuilder */ public function __construct($name, LinkBuilder $linkBuilder) { parent::__construct($name); $this->size = '260px'; $this->linkBuilder = $linkBuilder; }
/** * @param string $name * @param string $mask see http://digitalbush.com/projects/masked-input-plugin/ for details * @param string $hint */ public function __construct($name, $mask, $hint = '') { parent::__construct($name, null); $this->mask = $mask; $this->hint = $hint; }
public function __construct($name) { parent::__construct($name); }
public function SetName($value) { parent::SetName($value); $levelNumber = 0; foreach ($this->GetLevels() as $level) { $level->SetName($this->GetEditorName($levelNumber)); if ($levelNumber > 0) { $level->SetParentEditor($this->GetEditorName($levelNumber - 1)); } $levelNumber++; } }
private function RenderEditor(CustomEditor $editor, $nameInTemplate, $templateFile, $additionalParams = array()) { $validatorsInfo = array(); $validatorsInfo['InputAttributes'] = $editor->GetValidationAttributes(); $validatorsInfo['InputAttributes'] .= StringUtils::Format(' data-legacy-field-name="%s" data-pgui-legacy-validate="true"', $editor->GetFieldName()); $this->DisplayTemplate('editors/wrap_editor.tpl', array($nameInTemplate => $editor), array_merge(array('MaxWidth' => $editor->getMaxWidth(), 'Validators' => $validatorsInfo, 'EditorTemplate' => 'editors/' . $templateFile), $additionalParams)); }
public function __construct($name, $customAttributes = null) { parent::__construct($name, $customAttributes); $this->allowColorControls = false; }
public function __construct($name) { parent::__construct($name); $this->showImage = false; }
public function __construct($name, $columnCount = null, $rowCount = null, $customAttributes = null) { parent::__construct($name, $customAttributes); $this->columnCount = $columnCount; $this->rowCount = $rowCount; }