SAND-framework/console/skel/symfony-app/src/Session/AuthBundle/Security/Abstracts/GetterAbstract.php

43 lines
851 B
PHP
Raw Normal View History

<?php
/**
* Abstract class GetterAbstract
*
* @package Besancon\AuthBundle\Security\Abstracts
* @author Amine BEL HADJ ALI <amine.belhadjali@ac-besancon.fr>
*/
namespace App\Session\AuthBundle\Security\Abstracts;
/**
* Description of GetterAbstract
*
* @author belhadjali
*/
abstract class GetterAbstract {
public function isACP(){
return $this->getFrEduFonctAdm() == "ACP";
}
public function isDIR(){
return $this->getFrEduFonctAdm() == "DIR";
}
public function isDEC(){
return $this->getFrEduFonctAdm() == "DEC";
}
public function isDIR1D(){
return $this->isDEC();
}
public function isIEN1D (){
return $this->getFrEduFonctAdm() == "IEN1D";
}
public function isDIO(){
return $this->getFrEduFonctAdm() == "IEN1D";
}
}