Example #1
0
 public function has($sName)
 {
     // disable data
     if ($this->arrDisables and array_key_exists($sName, $this->arrDisables)) {
         return false;
     }
     if (parent::has($sName)) {
         return true;
     }
     // 在 exclude中的数据,不向 childs中寻找
     if (in_array($sName, $this->arrExclude)) {
         return false;
     }
     // 从 Childs 中找数据
     foreach ($this->arrChildren as $aChild) {
         if ($aChild->has($sName)) {
             return true;
         }
     }
     return false;
 }