コード例 #1
0
 public function __construct($name)
 {
     parent::__construct($name);
     $this->values = array();
     $this->selectedValue = null;
     $this->displayMode = self::StackedMode;
 }
コード例 #2
0
ファイル: text.php プロジェクト: martinw0102/ProjetSyst
 public function __construct($name, $size = null, $maxLength = null, $customAttributes = null)
 {
     parent::__construct($name, $customAttributes);
     $this->size = $size;
     $this->maxLength = $maxLength;
     $this->passwordMode = false;
 }
コード例 #3
0
ファイル: datetime.php プロジェクト: martinw0102/ProjetSyst
 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;
 }
コード例 #4
0
ファイル: combobox.php プロジェクト: martinw0102/ProjetSyst
 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;
 }
コード例 #5
0
ファイル: renderer.php プロジェクト: blakeHelm/BallotPath
 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));
 }
コード例 #6
0
 /** @param string $name */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->values = array();
     $this->selectedValues = array();
 }
コード例 #7
0
 /**
  * @param string $name
  * @param LinkBuilder $linkBuilder
  */
 public function __construct($name, LinkBuilder $linkBuilder)
 {
     parent::__construct($name);
     $this->size = '260px';
     $this->linkBuilder = $linkBuilder;
 }
コード例 #8
0
 /**
  * @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;
 }
コード例 #9
0
 public function __construct($name)
 {
     parent::__construct($name);
 }
コード例 #10
0
 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++;
     }
 }
コード例 #11
0
 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));
 }
コード例 #12
0
 public function __construct($name, $customAttributes = null)
 {
     parent::__construct($name, $customAttributes);
     $this->allowColorControls = false;
 }
コード例 #13
0
 public function __construct($name)
 {
     parent::__construct($name);
     $this->showImage = false;
 }
コード例 #14
0
 public function __construct($name, $columnCount = null, $rowCount = null, $customAttributes = null)
 {
     parent::__construct($name, $customAttributes);
     $this->columnCount = $columnCount;
     $this->rowCount = $rowCount;
 }