l = strlen ( $filter ); $this->filter = $filter; } /** * * @return bool */ public function accept() { $key = $this->getInnerIterator ()->key (); if (strncmp ( $key, $this->filter, $this->l ) !== 0) { return false; } return true; } } // vim: et sw=4 sts=4