Task/ReportHookDataFolder.php
public function listHookFiles() {
    $directory = $this->environment->getHooksDirectory();

    $files = array();

    // No need to verify $directory; our sanity check has taken care of it.
    $dh = opendir($directory);
    while (($file = readdir($dh)) !== FALSE) {
      // Ignore files that don't make sense to include.
      // System files and cruft.
      // TODO: replace all the .foo with one of the arcane PHP string checking functions
      if (in_array($file, array('.', '..', '.DS_Store', 'CVS', 'hooks_processed.php'))) {
        continue;
      }
      // Our own processed files.
      if (strpos($file, '_processed.php')) {
        continue;
      }

      $files[] = $file;
    }
    closedir($dh);

    return $files;
  }
public function listHookFiles() {
    $directory = $this->environment->getHooksDirectory();

    $files = array();

    // No need to verify $directory; our sanity check has taken care of it.
    $dh = opendir($directory);
    while (($file = readdir($dh)) !== FALSE) {
      // Ignore files that don't make sense to include.
      // System files and cruft.
      // TODO: replace all the .foo with one of the arcane PHP string checking functions
      if (in_array($file, array('.', '..', '.DS_Store', 'CVS', 'hooks_processed.php'))) {
        continue;
      }
      // Our own processed files.
      if (strpos($file, '_processed.php')) {
        continue;
      }

      $files[] = $file;
    }
    closedir($dh);

    return $files;
  }
public function listHookFiles ( ) { $ directory = $ this -> environment -> getHooksDirectory ( ) ; $ files = array ( ) ; // No need to verify $directory; our sanity check has taken care of it. $ dh = opendir ( $ directory ) ; while ( ( $ file = readdir ( $ dh ) ) !== FALSE ) { // Ignore files that don't make sense to include. // System files and cruft. // TODO: replace all the .foo with one of the arcane PHP string checking functions if ( in_array ( $ file , array ( '.' , '..' , '.DS_Store' , 'CVS' , 'hooks_processed.php' ) ) ) { continue ; } // Our own processed files. if ( strpos ( $ file , '_processed.php' ) ) { continue ; } $ files [ ] = $ file ; } closedir ( $ dh ) ; return $ files ; }
Get a list of all collected hook api.php files.

@return
A flat array of filenames, relative to the hooks directory. If no files
are present, an empty array is returned.
Get a list of all collected hook api . php files .