[ThePirateBayBridge] Add instructions
Added additional instructions for: 'username search' and 'category search' next to instructions for 'keyword search'. Changed variable name from underscore to camelCase.
This commit is contained in:
parent
2595b5d7d8
commit
585379d47a
1 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ class ThePirateBayBridge extends BridgeAbstract {
|
||||||
|
|
||||||
const PARAMETERS = array( array(
|
const PARAMETERS = array( array(
|
||||||
'q' => array(
|
'q' => array(
|
||||||
'name' => 'keywords, separated by semicolons',
|
'name' => 'keywords/username/category, separated by semicolons',
|
||||||
'exampleValue' => 'first list;second list;…',
|
'exampleValue' => 'first list;second list;…',
|
||||||
'required' => true
|
'required' => true
|
||||||
),
|
),
|
||||||
|
@ -24,9 +24,9 @@ class ThePirateBayBridge extends BridgeAbstract {
|
||||||
'user' => 'usr'
|
'user' => 'usr'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'cat_check' => array(
|
'catCheck' => array(
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'name' => 'Specify category for normal search ?',
|
'name' => 'Specify category for keyword search ?',
|
||||||
),
|
),
|
||||||
'cat' => array(
|
'cat' => array(
|
||||||
'name' => 'Category number',
|
'name' => 'Category number',
|
||||||
|
@ -94,7 +94,7 @@ class ThePirateBayBridge extends BridgeAbstract {
|
||||||
return $timestamp;
|
return $timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
$catBool = $this->getInput('cat_check');
|
$catBool = $this->getInput('catCheck');
|
||||||
if($catBool) {
|
if($catBool) {
|
||||||
$catNum = $this->getInput('cat');
|
$catNum = $this->getInput('cat');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue