示例#1
0
 function verify($vars, $auto_vars)
 {
     if (!$this->name) {
         fatal("[foreach] scope must have a name");
     }
     $fields = get_fields($this->type);
     $vars[$this->type . '-ID'] = true;
     foreach ($fields as $field => $dummy) {
         $vars[$field] = $vars[$this->name . '.' . $field] = true;
     }
     if ($this->type == 'RESOURCE') {
         $vars['rv_nicesize'] = $vars[$this->name . '.rv_nicesize'] = true;
     }
     $vars['result-number'] = true;
     parent::verify($vars, $auto_vars);
 }