Skip to content

Commit

Permalink
Nobody will use core/get alone anyway ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
gboddin committed Sep 15, 2015
1 parent 8fcbd1c commit 0dba540
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/iTopClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,16 @@ public function operation($operation, array $data=array()) {
return $this->sendRequest($data);
}

public function coreGet($class,$type=null) {
if(is_null($type))
$type = $class;
public function coreGet($class,$query=null) {
return $this->operation('core/get',array(
'class' => $class,
'key' => 'SELECT '.$type
'key' => $query
));
}

// soon to be deprecated :
public function coreGetCustomSelect($class,$query) {
return $this->operation('core/get',array(
'class' => $class,
'key' => $query
));
return $this->coreGet($class,$query);
}

public function coreUpdate($class,$query,$data,$comment=null) {
Expand Down

0 comments on commit 0dba540

Please sign in to comment.