mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
[core + bridges] get rid of loadMetadata
if a bridge needs to modify some of the data that were initialized there, ::__construct() should be used instead. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -1,44 +1,38 @@
|
||||
<?php
|
||||
class TwitterBridge extends BridgeAbstract{
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = "mitsukarenai";
|
||||
$this->name = "Twitter Bridge";
|
||||
$this->uri = "https://twitter.com/";
|
||||
$this->description = "Returns tweets by keyword/hashtag or user name";
|
||||
|
||||
$this->parameters["global"] = array(
|
||||
'nopic'=>array(
|
||||
'name'=>'Hide profile pictures',
|
||||
'type'=>'checkbox',
|
||||
'title'=>'Activate to hide profile pictures in content'
|
||||
)
|
||||
);
|
||||
|
||||
$this->parameters["By keyword or hashtag"] = array(
|
||||
'q'=>array(
|
||||
'name'=>'Keyword or #hashtag',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'rss-bridge, #rss-bridge',
|
||||
'title'=>'Insert a keyword or hashtag'
|
||||
)
|
||||
);
|
||||
|
||||
$this->parameters["By username"] = array(
|
||||
'u'=>array(
|
||||
'name'=>'username',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'sebsauvage',
|
||||
'title'=>'Insert a user name'
|
||||
),
|
||||
'norep'=>array(
|
||||
'name'=>'Without replies',
|
||||
'type'=>'checkbox',
|
||||
'title'=>'Only return initial tweets'
|
||||
)
|
||||
);
|
||||
}
|
||||
public $name='Twitter Bridge';
|
||||
public $uri='https://twitter.com';
|
||||
public $description='returns tweets';
|
||||
public $parameters=array(
|
||||
'global'=>array(
|
||||
'nopic'=>array(
|
||||
'name'=>'Hide profile pictures',
|
||||
'type'=>'checkbox',
|
||||
'title'=>'Activate to hide profile pictures in content'
|
||||
)
|
||||
),
|
||||
'By keyword or hashtag' => array(
|
||||
'q'=>array(
|
||||
'name'=>'Keyword or #hashtag',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'rss-bridge, #rss-bridge',
|
||||
'title'=>'Insert a keyword or hashtag'
|
||||
)
|
||||
),
|
||||
'By username' => array(
|
||||
'u'=>array(
|
||||
'name'=>'username',
|
||||
'required'=>true,
|
||||
'exampleValue'=>'sebsauvage',
|
||||
'title'=>'Insert a user name'
|
||||
),
|
||||
'norep'=>array(
|
||||
'name'=>'Without replies',
|
||||
'type'=>'checkbox',
|
||||
'title'=>'Only return initial tweets'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
public function getName(){
|
||||
switch($this->queriedContext){
|
||||
|
Reference in New Issue
Block a user