[POO] Utilisation de private final et abstract
Bonjour,
J'ai décidé d'être un peux plus strict sur mon code php c'est pour cela que j'utilise a présent des restrictions avec les mots clé "abstract" ou "private final" par exemple.
MAIS cela me crée une erreur.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| abstract class MySQL_low //Basic command
{
var $connected_with_serv = array(); // All active connections are save in this table
private final function DB_query($query , $server , $commentary = "N/C")
{
if( isset($this->connected_with_serv[$server]) && $this->connected_with_serv[$server] != "" ) // if we are connected to the server
{
echo "already connected<br />" ;
$WinConnection = $this->connected_with_serv[$server] ;
}
...
... |
L'erreur est : Parse error: syntax error, unexpected T_CLASS in /home.47/a/u/r/auretourz/www/include/MySQL_fonctions.class.php on line 6
Mes PHP info :
- http://www.auretouredechasse.com/phpinfo.php
- http://www.auretouredechasse.com/phpinfo.php5
Une petite aide pour mon erreur ? :king: