Ejemplo n.º 1
0
 function FileField($field, $pageObject, $id)
 {
     parent::EditControl($field, $pageObject, $id);
     $this->format = EDIT_FORMAT_FILE;
     global $conn;
     $this->conn = $conn;
 }
Ejemplo n.º 2
0
 function LookupField($field, $pageObject, $id)
 {
     parent::EditControl($field, $pageObject, $id);
     $this->format = EDIT_FORMAT_TEXT_FIELD;
     if ($pageObject->pageType == PAGE_LIST) {
         $this->lookupPageType = PAGE_SEARCH;
     } else {
         $this->lookupPageType = $pageObject->pageType;
     }
     $this->lookupTable = $this->pageObject->pSetEdit->getLookupTable($this->field);
     $this->lookupType = $this->pageObject->pSetEdit->getLookupType($this->field);
     if ($this->lookupType == LT_QUERY) {
         $this->lookupPSet = new ProjectSettings($this->lookupTable);
     }
     $this->displayFieldName = $this->pageObject->pSetEdit->getDisplayField($this->field);
     $this->linkFieldName = $this->pageObject->pSetEdit->getLinkField($this->field);
     $this->linkAndDisplaySame = $this->displayFieldName == $this->linkFieldName;
     $this->ciphererLink = new RunnerCipherer($this->pageObject->tName);
     if ($this->lookupType == LT_QUERY) {
         $this->ciphererDisplay = new RunnerCipherer($this->lookupTable);
     } else {
         $this->ciphererDisplay = $this->ciphererLink;
     }
     $this->LCType = $this->pageObject->pSetEdit->lookupControlType($this->field);
     $this->multiselect = $this->pageObject->pSetEdit->multiSelect($this->field);
     $this->lwLinkField = $this->pageObject->pSetEdit->getLWLinkField($this->field);
     $this->lwDisplayFieldWrapped = $this->pageObject->pSetEdit->getLWDisplayField($this->field, true);
     $this->customDisplay = $this->pageObject->pSetEdit->getCustomDisplay($this->field);
 }
Ejemplo n.º 3
0
 function LookupField($field, $pageObject, $id, $connection)
 {
     parent::EditControl($field, $pageObject, $id, $connection);
     $this->tName = $this->pageObject->tName;
     if ($this->pageObject->tableBasedSearchPanelAdded) {
         $this->tName = $this->pageObject->searchTableName;
     }
     $this->format = EDIT_FORMAT_TEXT_FIELD;
     if ($pageObject->pageType == PAGE_LIST || !$pageObject->isPageTableBased()) {
         $this->lookupPageType = PAGE_SEARCH;
     } else {
         $this->lookupPageType = $pageObject->pageType;
     }
     $this->lookupTable = $this->pageObject->pSetEdit->getLookupTable($this->field);
     $this->lookupType = $this->pageObject->pSetEdit->getLookupType($this->field);
     $this->setLookupConnection();
     if ($this->lookupType == LT_QUERY) {
         $this->lookupPSet = new ProjectSettings($this->lookupTable);
     }
     $this->displayFieldName = $this->pageObject->pSetEdit->getDisplayField($this->field);
     $this->linkFieldName = $this->pageObject->pSetEdit->getLinkField($this->field);
     $this->linkAndDisplaySame = $this->displayFieldName == $this->linkFieldName;
     $this->ciphererLink = new RunnerCipherer($this->tName);
     if ($this->lookupType == LT_QUERY) {
         $this->ciphererDisplay = new RunnerCipherer($this->lookupTable);
     } else {
         $this->ciphererDisplay = $this->ciphererLink;
     }
     $this->LCType = $this->pageObject->pSetEdit->lookupControlType($this->field);
     $this->multiselect = $this->pageObject->pSetEdit->multiSelect($this->field);
     $this->customDisplay = $this->pageObject->pSetEdit->getCustomDisplay($this->field);
     $this->lwLinkField = $this->lookupConnection->addFieldWrappers($this->pageObject->pSetEdit->getLinkField($this->field));
     $this->lwDisplayFieldWrapped = RunnerPage::sqlFormattedDisplayField($this->field, $this->lookupConnection, $this->pageObject->pSetEdit);
     // The number of rows in a multiline lookup
     $this->lookupSize = $this->pageObject->pSetEdit->selectSize($this->field);
     $this->bUseCategory = $this->pageObject->pSetEdit->useCategory($this->field);
 }
Ejemplo n.º 4
0
 function FileField($field, $pageObject, $id, $connection)
 {
     parent::EditControl($field, $pageObject, $id, $connection);
     $this->format = EDIT_FORMAT_FILE;
 }
Ejemplo n.º 5
0
 function DatabaseFileField($field, $pageObject, $id)
 {
     parent::EditControl($field, $pageObject, $id);
     $this->format = $pageObject->pSetEdit->getEditFormat($field);
 }
Ejemplo n.º 6
0
 function CheckboxField($field, $pageObject, $id, $connection)
 {
     parent::EditControl($field, $pageObject, $id, $connection);
     $this->format = EDIT_FORMAT_CHECKBOX;
 }