public function dir_readdir() { $result = parent::dir_readdir(); if (is_callable($this->readDirCallBack)) { call_user_func($this->readDirCallBack); } return $result; }