mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-04 02:57:59 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
46
sources/lib/AdService/SiteConfig/AbstractSiteConfig.php
Normal file
46
sources/lib/AdService/SiteConfig/AbstractSiteConfig.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace AdService\SiteConfig;
|
||||
|
||||
abstract class AbstractSiteConfig
|
||||
{
|
||||
/**
|
||||
* Nom du site
|
||||
* @var string
|
||||
*/
|
||||
protected $site_name = "";
|
||||
|
||||
/**
|
||||
* URL du site
|
||||
* @var string
|
||||
*/
|
||||
protected $site_url = "";
|
||||
|
||||
/**
|
||||
* Les devises acceptées par le site.
|
||||
* @var array
|
||||
*/
|
||||
protected $currencies = array("€");
|
||||
|
||||
/**
|
||||
* Indique si l'information d'une annonce pro ou particulier est disponible
|
||||
* dans la liste d'annonce.
|
||||
* @var bool
|
||||
*/
|
||||
protected $pro_visible = true;
|
||||
|
||||
/**
|
||||
* Indique si le site fourni une date par annonce.
|
||||
* @var bool
|
||||
*/
|
||||
protected $has_date = true;
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return mixed
|
||||
*/
|
||||
public function getOption($name)
|
||||
{
|
||||
return isset($this->$name) ? $this->$name : null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user