Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/query/AlmanacServiceQuery.php
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | return parent::getOrderableColumns() + array( | ||||
'column' => 'name', | 'column' => 'name', | ||||
'type' => 'string', | 'type' => 'string', | ||||
'unique' => true, | 'unique' => true, | ||||
'reverse' => true, | 'reverse' => true, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getValueMap($cursor, array $keys) { | protected function getPagingValueMap($cursor, array $keys) { | ||||
$service = $this->loadCursorObject($cursor); | $service = $this->loadCursorObject($cursor); | ||||
return array( | return array( | ||||
'id' => $service->getID(), | 'id' => $service->getID(), | ||||
'name' => $service->getServiceName(), | 'name' => $service->getName(), | ||||
); | ); | ||||
} | } | ||||
public function getBuiltinOrders() { | public function getBuiltinOrders() { | ||||
return array( | return array( | ||||
'name' => array( | 'name' => array( | ||||
'vector' => array('name'), | 'vector' => array('name'), | ||||
'name' => pht('Service Name'), | 'name' => pht('Service Name'), | ||||
), | ), | ||||
) + parent::getBuiltinOrders(); | ) + parent::getBuiltinOrders(); | ||||
} | } | ||||
} | } |