mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 10:04:54 +02:00
[bridges] use constants instead of variable members
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
556b8a2452
commit
9a0da733ef
129 changed files with 834 additions and 834 deletions
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
class LinkedInCompanyBridge extends BridgeAbstract{
|
||||
|
||||
public $maintainer = "regisenguehard";
|
||||
public $name = "LinkedIn Company";
|
||||
public $uri = "https://www.linkedin.com/";
|
||||
public $description = "Returns most recent actus from Company on LinkedIn. (https://www.linkedin.com/company/<strong style=\"font-weight:bold;\">apple</strong>)";
|
||||
const MAINTAINER = "regisenguehard";
|
||||
const NAME = "LinkedIn Company";
|
||||
const URI = "https://www.linkedin.com/";
|
||||
const DESCRIPTION = "Returns most recent actus from Company on LinkedIn. (https://www.linkedin.com/company/<strong style=\"font-weight:bold;\">apple</strong>)";
|
||||
|
||||
public $parameters = array( array(
|
||||
const PARAMETERS = array( array(
|
||||
'c'=>array(
|
||||
'name'=>'Company name',
|
||||
'required'=>true
|
||||
|
@ -15,7 +15,7 @@ class LinkedInCompanyBridge extends BridgeAbstract{
|
|||
|
||||
public function collectData(){
|
||||
$html = '';
|
||||
$link = $this->uri.'company/'.$this->getInput('c');
|
||||
$link = self::URI.'company/'.$this->getInput('c');
|
||||
|
||||
$html = $this->getSimpleHTMLDOM($link)
|
||||
or $this->returnServerError('Could not request LinkedIn.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue