| Line 12... |
Line 12... |
| 12 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
12 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
| 13 |
* @version 1.0
|
13 |
* @version 1.0
|
| 14 |
* @copyright 1999-2011 Tela Botanica (accueil@tela-botanica.org)
|
14 |
* @copyright 1999-2011 Tela Botanica (accueil@tela-botanica.org)
|
| 15 |
*/
|
15 |
*/
|
| 16 |
// TODO : Config et Outils sont des classes statiques qui doivent poser des pb pour les tests...
|
16 |
// TODO : Config et Outils sont des classes statiques qui doivent poser des pb pour les tests...
|
| 17 |
class Publications {
|
17 |
class Publications extends Commun{
|
| Line 18... |
Line 18... |
| 18 |
|
18 |
|
| 19 |
private $parametres;
|
19 |
protected $parametres;
|
| 20 |
private $ressources;
|
20 |
protected $ressources;
|
| 21 |
private $Bdd;
|
21 |
private $Bdd;
|
| 22 |
private $config;
|
22 |
private $config;
|
| 23 |
private $nbrePublications;
|
23 |
private $nbrePublications;
|
| - |
|
24 |
private $masque_taxon;
|
| Line 24... |
Line 25... |
| 24 |
private $masque_taxon;
|
25 |
protected $service = 'publications';
|
| 25 |
|
- |
|
| 26 |
public function __construct(Bdd $bdd = null, Array $config = null, Utilisateurs $utilisateurs = null, Url $url = null) {
|
26 |
|
| 27 |
$this->config = is_null($config) ? Config::get('Publications') : $config;
|
27 |
public function __construct(Bdd $bdd = null, Array $config = null, Utilisateurs $utilisateurs = null, Url $url = null) {
|
| 28 |
$this->Bdd = is_null($bdd) ? new Bdd() : $bdd;
|
28 |
$this->Bdd = is_null($bdd) ? new Bdd() : $bdd;
|
| Line 29... |
Line 29... |
| 29 |
$this->UrlNavigation = is_null($url) ? new Url($this->config['url_service']) : $url;
|
29 |
$this->UrlNavigation = is_null($url) ? new Url($this->config['url_service']) : $url;
|