コード例 #1
0
/**
 * @param LinkBuilder $linkBuilder
 * @param array $PrimaryKeyValues
 * @return string
 */
function AddPrimaryKeyParameters($linkBuilder, $PrimaryKeyValues)
{
    $KeyValueList = '';
    $KeyValueNumber = 0;
    foreach ($PrimaryKeyValues as $PrimaryKeyValue) {
        $linkBuilder->AddParameter("pk{$KeyValueNumber}", $PrimaryKeyValue);
        $KeyValueNumber++;
    }
    return $KeyValueList;
}
コード例 #2
0
 public function CreateLookupSearchInput($fieldName, $caption, Dataset $lookupDataset, $idColumn, $valueColumn, $useComboBox = false)
 {
     return new LookupSearchColumn($fieldName, $caption, $this->stringLocalizer, new SuperGlobals($this->name), $this->variableContainer, $this->linkBuilder->CloneLinkBuilder(), $lookupDataset, $idColumn, $valueColumn, $useComboBox);
 }
コード例 #3
0
 /**
  * @param LinkBuilder $linkBuilder
  */
 function AddCurrentPageParameters(&$linkBuilder)
 {
     $linkBuilder->AddParameter('page', $this->CurrentPageNumber());
 }
コード例 #4
0
 /**
  * @return string
  */
 public function GetDataUrl()
 {
     $linkBuilder = $this->linkBuilder->CloneLinkBuilder();
     $linkBuilder->AddParameter(OPERATION_HTTPHANDLER_NAME_PARAMNAME, $this->GetHandlerName());
     return $linkBuilder->GetLink();
 }
コード例 #5
0
 function CreateLinkBuilder()
 {
     $result = new LinkBuilder($this->GetPageFileName());
     if (isset($this->httpHandlerName)) {
         $result->AddParameter('hname', $this->httpHandlerName);
     }
     return $result;
 }
コード例 #6
0
 public function CloneLinkBuilder()
 {
     $result = new LinkBuilder($this->targetPage);
     $result->AddParameters($this->GetParameters());
     return $result;
 }
コード例 #7
0
 public function DecorateLinkForPostMasterRecord(LinkBuilder $linkBuilder)
 {
     $linkBuilder->AddParameter('details-redirect', $this->separatePageHandlerName);
 }
コード例 #8
0
 public function fillGetParams(LinkBuilder $linkBuilder)
 {
     foreach ($this->GetArrayByInputMethod(InputMethod::Get) as $key => $value) {
         $linkBuilder->AddParameter($key, $value);
     }
 }