public function fn_validate_all_level($loc, $params) { $tmp = new QdProductCat(); //$tmp->SETRANGE('type', static::$TYPE_PRODUCTCAT); $count = 0; foreach ($tmp->GETLIST() as $item) { if ($item->save()) { $count++; } } $this->pushValidateError('', 'Total items validated: ' . $count, 'info'); return true; }