Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/db/db_event_handler.php
Show First 20 Lines • Show All 3387 Lines • ▼ Show 20 Line(s) | |||||
* @param string $term Term. | * @param string $term Term. | ||||
* | * | ||||
* @return Array | * @return Array | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function getAutoCompleteSuggestions(kEvent $event, $term) | protected function getAutoCompleteSuggestions(kEvent $event, $term) | ||||
{ | { | ||||
/** @var kDBItem $object */ | /** @var kDBItem $object */ | ||||
$object = $event->getObject(); | $object = $event->getObject(array('skip_autoload' => true)); | ||||
$field = $this->Application->GetVar('field'); | $field = $this->Application->GetVar('field'); | ||||
if ( !$field || !$term || !$object->isField($field) ) { | if ( !$field || !$term || !$object->isField($field) ) { | ||||
return array(); | return array(); | ||||
} | } | ||||
$limit = $this->Application->GetVar('limit'); | $limit = $this->Application->GetVar('limit'); | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |