Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDBEASY-171 - Dont make all ADDI-webservices mandatory. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions lib/request/TingClientRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,62 +26,89 @@ public function getRequestUrl($key){
* @return TingClientSearchRequest
*/
public function getSearchRequest() {
if (empty($this->urls['search'])) {
return FALSE;
}
return new TingClientSearchRequest($this->urls['search']);
}

/**
* @return TingClientScanRequest
*/
public function getScanRequest() {
if (empty($this->urls['scan'])) {
return FALSE;
}
return new TingClientScanRequest($this->urls['scan']);
}

/**
* @return TingClientCollectionRequest
*/
public function getCollectionRequest() {
if (empty($this->urls['collection'])) {
return FALSE;
}
return new TingClientCollectionRequest($this->urls['collection']);
}

/**
* @return TingClientObjectRequest
*/
public function getObjectRequest() {
if (empty($this->urls['object'])) {
return FALSE;
}
return new TingClientObjectRequest($this->urls['object']);
}

/**
* @return TingClientSpellRequest
*/
public function getSpellRequest() {
if (empty($this->urls['spell'])) {
return FALSE;
}
return new TingClientSpellRequest($this->urls['spell']);
}

/**
* @return TingClientObjectRecommendationRequest
*/
function getObjectRecommendationRequest() {
if (empty($this->urls['recommendation'])) {
return FALSE;
}
return new TingClientObjectRecommendationRequest($this->urls['recommendation']);
}

/**
* @ return TingClientInfomediaArticleRequest
*/
function getInfomediaArticleRequest(){
if (empty($this->urls['infomedia'])) {
return FALSE;
}
return new TingClientInfomediaArticleRequest($this->urls['infomedia']);
}

/**
* @return TingClientInfomediaReviewRequest
*/
function getInfomediaReviewRequest(){
if (empty($this->urls['infomedia'])) {
return FALSE;
}
return new TingClientInfomediaReviewRequest($this->urls['infomedia']);
}

/**
* @return TingFulltextRequest
*/
function getFulltextRequest() {
if (empty($this->urls['object'])) {
return FALSE;
}
return new TingFulltextRequest($this->urls['object']);
}
}