33 'map' => array($this, 'iteratorMap'),
34 'sort' => $state->sort
35 ));
36
37 if ($folders === false) {
38 throw new UnexpectedValueException('Invalid folder');
39 }
40
41 $this->_count = count($folders);
42
43 if (strtolower($state->direction) == 'desc') {