39 _root::getLog()->info(
'--vue: initialisation ['.$sRessource.
']');
40 if($sRessource!=null){
42 if(preg_match(
'/::/',$sRessource)){
43 list($this->_sModule,$this->_sTpl)=preg_split(
'/::/',$sRessource);
48 $this->choose($sRessource);
52 public function __set($sVar, $sVal){
54 $this->_tVar[$sVar]=$sVal;
56 public function __get($sVar){
57 if(!array_key_exists($sVar,$this->_tVar)){
58 _root::getLog()->error(
'Variable '.$sVar.
' inexistante dans le template '.$this->_sModule.
'::'.$this->_sTpl);
59 throw new Exception(
'Variable '.$sVar.
' inexistante dans le template '.$this->_sModule.
'::'.$this->_sTpl);
61 return $this->_tVar[$sVar];
68 return isset($this->_tVar[$sVar]);
75 unset($this->_tVar[$sVar]);
83 _root::getLog()->info(
'--vue: affichage ['.$this->_sPath.
']');
85 include $this->_sPath;
86 $sSortie=ob_get_contents();
104 public function getLink($sLink,$tParam=null,$bAmp=
true){
108 protected function choose($sPath){
109 if(!file_exists($sPath) and !file_exists($sPath._root::getConfigVar(
'template.extension'))){
111 throw new Exception(
'vue '.$sPath.
' et '.$sPath._root::getConfigVar(
'template.extension').
' inexistant');
113 $this->_sPath=$sPath;
static getConfigVar($sCatAndVar, $uDefaut=null)
static getLink($uNav, $tParam=null, $bAmp=true)
__construct($sRessource=null)
getLink($sLink, $tParam=null, $bAmp=true)