Remove the ticket hidden field, and add a dropdown containing
the available tickets.
@param DataList $tickets
353828
public function setAllowedTickets(SS_List $tickets) {
		$this->fields->removeByName("TicketID");
		$this->fields->unshift(
			new DropdownField("TicketID", "Ticket",
				$tickets->toArray()
			)
		);
	}
540254
public function addPriceLists(\AgentSIB\Diadoc\Api\Proto\Events\PriceListAttachment $value)
    {
        if ($this->PriceLists === null) {
            $this->PriceLists = new \Protobuf\MessageCollection();
        }

        $this->PriceLists->add($value);
    }
757246
function(visible, datalistSelect) {
		if (visible) {
			datalistSelect.removeAttribute('hidden');
		} else {
			datalistSelect.setAttributeNode(dcmnt.createAttribute('hidden'));
		}

		datalistSelect.setAttribute('aria-hidden', (!visible).toString());
	}
300461
public function getData(GetDataEvent $event)
    {
        $options = $event->getOptions();
        $options['hiddenFilters']['hidden'] = false;

        if (DataSource::CONTEXT_HOME === $event->getContext()) {
            $options['hiddenFilters']['displayable'] = true;
            $options['hiddenFilters']['model'] = false;
            $options['hiddenFilters']['personal'] = false;
        }

        $event->setData(
            $this->finder->search(Workspace::class, $options)
        );

        $event->stopPropagation();
    }
904590
public void setTicketIds(java.util.Collection<String> ticketIds) {
        if (ticketIds == null) {
            this.ticketIds = null;
            return;
        }

        this.ticketIds = new java.util.ArrayList<String>(ticketIds);
    }
350700
private function removeSubtableMetadata($dataTable)
    {
        if ($dataTable instanceof DataTable\Map) {
            foreach ($dataTable->getDataTables() as $childTable) {
                $this->removeSubtableMetadata($childTable);
            }
        } else {
            foreach ($dataTable->getRows() as $row) {
                $row->deleteMetadata('idsubdatatable_in_db');
            }
        }
    }
661506
function photos_upload_checkTickets($tickets)
    {
        /** http://www.flickr.com/services/api/flickr.photos.upload.checkTickets.html */
        if (is_array($tickets)) {
            $tickets = implode(",", $tickets);
        }
        $this->request("flickr.photos.upload.checkTickets", array("tickets" => $tickets), TRUE);
        return $this->parsed_response ? $this->parsed_response['uploader']['ticket'] : false;
    }
1365923
public function addCommonParams(Dataset $dataset)
    {
        $dataset
            ->setParam('VK_SERVICE', $this->getConfParam('VK_SERVICE', '1011'))
            ->setParam('VK_VERSION', '008')
            ->setParam('VK_SND_ID', $this->getConfParam('VK_SND_ID'))
            ->setParam('VK_ACC', $this->getConfParam('VK_ACC'))
            ->setParam('VK_NAME', $this->getConfParam('VK_NAME'))
            ->setParam('VK_RETURN', $this->getReturnUrl())
            ->setParam('VK_CANCEL', $this->getCancelUrl())
            ->setParam('VK_ENCODING', $this->getConfParam('VK_ENCODING', 'UTF-8'))
            ->setParam('VK_DATETIME', date(DATE_ISO8601))
        ;
    }
264755
protected function saveProductListCategory(DataSetInterface $dataSet): void
    {
        $productListCategoryEntity = SpyProductListCategoryQuery::create()
            ->filterByFkProductList($dataSet[ProductListDataSetInterface::ID_PRODUCT_LIST])
            ->filterByFkCategory($dataSet[ProductListDataSetInterface::ID_CATEGORY])
            ->findOneOrCreate();

        $productListCategoryEntity->setFkProductList($dataSet[ProductListDataSetInterface::ID_PRODUCT_LIST])
            ->setFkCategory($dataSet[ProductListDataSetInterface::ID_CATEGORY])
            ->save();

        $this->addPublishEvents(
            ProductListEvents::PRODUCT_LIST_CATEGORY_PUBLISH,
            $productListCategoryEntity->getFkCategory()
        );
    }
209213
def ticket_field_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/ticket_fields/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
672764
public function finish($ticket, $result)
    {
        if (!isset($this->entries[$ticket])) {
            throw new \InvalidArgumentException('Invalid history ticket');
        } elseif (isset($this->entries[$ticket]['result'])
            || isset($this->entries[$ticket]['exception'])
        ) {
            throw new \LogicException('History entry is already finished');
        }

        if ($result instanceof \Exception) {
            $this->entries[$ticket]['exception'] = $result;
        } else {
            $this->entries[$ticket]['result'] = $result;
        }

        if (count($this->entries) >= $this->maxEntries) {
            $this->entries = array_slice($this->entries, -$this->maxEntries, null, true);
        }
    }
495364
public function addEventFilter(FilterCollectionEvent $event): void
    {
        $now = new \DateTime();
        $qb = $event->getQueryBuilder();
        $query = $qb->query()->bool()
            ->addMust($qb->query()->term(['_index' => 'event']))
            ->addMust($qb->query()->term(['active' => true]))
            ->addMust($qb->query()->terms('groups.id', $event->getGroupIds()))
            ->addMustNot($qb->query()->exists('schedule'))
        ;
        $event->addFilter($query);
    }
628026
public function datalist($entries = [])
    {
        $this->defaultAttribute('list', "list-{$this->id}");

        $datalist = "<datalist id=\"list-{$this->id}\">";
        foreach ($entries as $k => $v) {
            $datalist .= "<option value=\"{$k}\">{$v}</option>";
        }
        $datalist .= '</datalist>';

        return $this->append($datalist);
    }
211436
public function fliterFields($fields = null){

        if (is_string($fields)){ // Comma Seperated List (eg Url Param)
            $fields = explode(',', $fields);
        }

        if(empty($fields)){
            $this->hidden = [];
        } else {
            $this->hidden = ['id','parent_id','left','right','depth','name','alternames','country','level','population','lat','long'];
            foreach ($fields as $field) {
                $index = array_search($field, $this->hidden);
                if($index !== false){
                    unset($this->hidden[$index]);
                }
            };
            $this->hidden = array_values($this->hidden);
        }

        return $this;
    }
316292
public function form_hidden($params) {
        if (!isset($params['field'])) {
            throw new \UnexpectedValueException("The field parameter is required.");
        }
        $value = isset($params['value']) ? $params['value'] : null;
        $attributes = isset($params['attrs']) ? $params['attrs'] : array();
        return Form::hidden($params['field'], $value, $attributes);
    }
662742
protected function preparePriceDataKeysCache(DataSetInterface $dataSet): void
    {
        if ($this->isDataKeysCachePrepared) {
            return;
        }
        foreach ($dataSet as $key => $value) {
            if (!$this->isPriceDataKey($key)) {
                continue;
            }
            $this->priceDataKeysCache[$key] = $this->getPriceDataKey($key);
        }
        $this->isDataKeysCachePrepared = true;
    }
535309
public function detach(\Zend_EventManager_EventCollection $events)
    {
        foreach($this->listeners as $index => $listener) {
            if($events->detach($listener)) {
                unset($this->listeners[$index]);
            }
        }
    }