Ejemplo n.º 1
0
 function getSection()
 {
     $xml = new xml($this->e);
     if ($pi = pathinfo($xml->documentURI(), PATHINFO_FILENAME)) {
         return $this->struct->getSection($pi);
     }
 }
Ejemplo n.º 2
0
 function disable($val)
 {
     $xml = new xml($this->e);
     $nocache_xml = new xml($xml->documentURI(), $xml->de()->tagName, false);
     $users = new users($nocache_xml, $this->e->tagName);
     if ($usr = $users->getUser($this->getLogin())) {
         $val = $val ? 'disabled' : null;
         $usr->setDisabled($val);
         $nocache_xml->save();
         $this->setDisabled($val);
     }
 }