Lines Matching refs:level
104 int level; member
145 while (object->level > 0) { in spl_recursive_it_dtor()
146 sub_iter = object->iterators[object->level].iterator; in spl_recursive_it_dtor()
148 zval_ptr_dtor(&object->iterators[object->level--].zobject); in spl_recursive_it_dtor()
151 object->level = 0; in spl_recursive_it_dtor()
160 int level = object->level; in spl_recursive_it_valid_ex() local
162 while (level >=0) { in spl_recursive_it_valid_ex()
163 sub_iter = object->iterators[level].iterator; in spl_recursive_it_valid_ex()
167 level--; in spl_recursive_it_valid_ex()
186 zend_object_iterator *sub_iter = object->iterators[object->level].iterator; in spl_recursive_it_get_current_data()
194 zend_object_iterator *sub_iter = object->iterators[object->level].iterator; in spl_recursive_it_get_current_key()
215 iterator = object->iterators[object->level].iterator; in spl_recursive_it_move_forward_ex()
216 switch (object->iterators[object->level].state) { in spl_recursive_it_move_forward_ex()
230 object->iterators[object->level].state = RS_TEST; in spl_recursive_it_move_forward_ex()
233 ce = object->iterators[object->level].ce; in spl_recursive_it_move_forward_ex()
234 zobject = object->iterators[object->level].zobject; in spl_recursive_it_move_forward_ex()
242 object->iterators[object->level].state = RS_NEXT; in spl_recursive_it_move_forward_ex()
252 if (object->max_depth == -1 || object->max_depth > object->level) { in spl_recursive_it_move_forward_ex()
256 object->iterators[object->level].state = RS_CHILD; in spl_recursive_it_move_forward_ex()
259 object->iterators[object->level].state = RS_SELF; in spl_recursive_it_move_forward_ex()
266 object->iterators[object->level].state = RS_NEXT; in spl_recursive_it_move_forward_ex()
275 object->iterators[object->level].state = RS_NEXT; in spl_recursive_it_move_forward_ex()
289 object->iterators[object->level].state = RS_CHILD; in spl_recursive_it_move_forward_ex()
291 object->iterators[object->level].state = RS_NEXT; in spl_recursive_it_move_forward_ex()
295 ce = object->iterators[object->level].ce; in spl_recursive_it_move_forward_ex()
296 zobject = object->iterators[object->level].zobject; in spl_recursive_it_move_forward_ex()
311 object->iterators[object->level].state = RS_NEXT; in spl_recursive_it_move_forward_ex()
325 object->iterators[object->level].state = RS_SELF; in spl_recursive_it_move_forward_ex()
327 object->iterators[object->level].state = RS_NEXT; in spl_recursive_it_move_forward_ex()
329 object->iterators = erealloc(object->iterators, sizeof(spl_sub_iterator) * (++object->level+1)); in spl_recursive_it_move_forward_ex()
331 object->iterators[object->level].iterator = sub_iter; in spl_recursive_it_move_forward_ex()
332 object->iterators[object->level].zobject = child; in spl_recursive_it_move_forward_ex()
333 object->iterators[object->level].ce = ce; in spl_recursive_it_move_forward_ex()
334 object->iterators[object->level].state = RS_START; in spl_recursive_it_move_forward_ex()
351 if (object->level > 0) { in spl_recursive_it_move_forward_ex()
363 zval_ptr_dtor(&object->iterators[object->level].zobject); in spl_recursive_it_move_forward_ex()
364 object->level--; in spl_recursive_it_move_forward_ex()
379 while (object->level) { in spl_recursive_it_rewind_ex()
380 sub_iter = object->iterators[object->level].iterator; in spl_recursive_it_rewind_ex()
382 zval_ptr_dtor(&object->iterators[object->level--].zobject); in spl_recursive_it_rewind_ex()
513 intern->level = 0; in spl_recursive_it_it_construct()
562 while (intern->level >= 0) { in spl_recursive_it_it_construct()
563 sub_iter = intern->iterators[intern->level].iterator; in spl_recursive_it_it_construct()
565 zval_ptr_dtor(&intern->iterators[intern->level--].zobject); in spl_recursive_it_it_construct()
610 zend_object_iterator *iterator = object->iterators[object->level].iterator; in SPL_METHOD()
641 zend_object_iterator *iterator = object->iterators[object->level].iterator; in SPL_METHOD()
677 RETURN_LONG(object->level); in SPL_METHOD()
685 long level = object->level; in SPL_METHOD() local
687 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &level) == FAILURE) { in SPL_METHOD()
690 if (level < 0 || level > object->level) { in SPL_METHOD()
693 RETURN_ZVAL(object->iterators[level].zobject, 1, 0); in SPL_METHOD()
701 long level = object->level; in SPL_METHOD() local
707 RETURN_ZVAL(object->iterators[level].zobject, 1, 0); in SPL_METHOD()
735 zend_class_entry *ce = object->iterators[object->level].ce; in SPL_METHOD()
742 zobject = object->iterators[object->level].zobject; in SPL_METHOD()
760 zend_class_entry *ce = object->iterators[object->level].ce; in SPL_METHOD()
767 zobject = object->iterators[object->level].zobject; in SPL_METHOD()
846 long level = object->level; in spl_recursive_it_get_method() local
852 zobj = object->iterators[level].zobject; in spl_recursive_it_get_method()
878 while (object->level >= 0) { in spl_RecursiveIteratorIterator_dtor()
879 sub_iter = object->iterators[object->level].iterator; in spl_RecursiveIteratorIterator_dtor()
881 zval_ptr_dtor(&object->iterators[object->level--].zobject); in spl_RecursiveIteratorIterator_dtor()
955 ZEND_ARG_INFO(0, level)
988 int level; in spl_recursive_tree_iterator_get_prefix() local
992 for (level = 0; level < object->level; ++level) { in spl_recursive_tree_iterator_get_prefix()
993 …zend_call_method_with_0_params(&object->iterators[level].zobject, object->iterators[level].ce, NUL… in spl_recursive_tree_iterator_get_prefix()
1003 …zend_call_method_with_0_params(&object->iterators[level].zobject, object->iterators[level].ce, NUL… in spl_recursive_tree_iterator_get_prefix()
1021 zend_object_iterator *iterator = object->iterators[object->level].iterator; in spl_recursive_tree_iterator_get_entry()
1125 zend_object_iterator *iterator = object->iterators[object->level].iterator; in SPL_METHOD()
1171 zend_object_iterator *iterator = object->iterators[object->level].iterator; in SPL_METHOD()