Skip to content

Commit

Permalink
elementInfo() and Tripal WS.
Browse files Browse the repository at this point in the history
  • Loading branch information
laceysanderson committed Apr 24, 2020
1 parent ffdfa3c commit fbd5997
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions includes/TripalFields/ncit__private/ncit__private.inc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ncit__private extends TripalField {
// is convenient for speed. Fields that are slow should for loading
// should have auto_attach set to FALSE so tha their values can be
// attached asynchronously.
'auto_attach' => FALSE,
'auto_attach' => TRUE,
];

// A boolean specifying that users should not be allowed to create
Expand Down Expand Up @@ -109,32 +109,18 @@ class ncit__private extends TripalField {
];
}

/**
* @see ChadoField::query()
*
*/
public function query($query, $condition) {
}

/**
* @see ChadoField::queryOrder()
*
*/
public function queryOrder($query, $order) {
}


/**
* @see ChadoField::elementInfo()
* @see TripalField::elementInfo()
*
*/
public function elementInfo() {
$field_term = $this->getFieldTermID();
return [
$field_term => [
'operations' => ['eq', 'ne', 'contains', 'starts'],
'sortable' => TRUE,
'searchable' => TRUE,
'operations' => [],
'sortable' => FALSE,
'searchable' => FALSE,
],
];
}
Expand Down

0 comments on commit fbd5997

Please sign in to comment.