Notebookregistrierung für Mitarbeiter deaktiviert

This commit is contained in:
Andreas Österreicher
2019-10-07 14:00:46 +02:00
parent c739fb0dc5
commit db7687e1ff
3 changed files with 23 additions and 17 deletions
+6 -6
View File
@@ -32,7 +32,7 @@
*/
class File_Match
{
// {{{ Properties (All private)
var $find;
@@ -61,7 +61,7 @@ class File_Match
* feature only works with the "normal" search.
*
*/
function File_Match($find, $files, $directories = '', $include_subdir = 1, $ignore_lines = array())
function __construct($find, $files, $directories = '', $include_subdir = 1, $ignore_lines = array())
{
$this->find = $find;
@@ -309,7 +309,7 @@ class File_Match
$file = fread($fp = fopen($filename, 'r'), filesize($filename));
fclose($fp);
$this->occurences = preg_match($this->find, $file, $this->match);
$this->occurences = preg_match($this->find, $file, $this->match);
}
// }}}
@@ -342,7 +342,7 @@ class File_Match
// }}}
// {{{ writeout()
/**
* Function to writeout the file contents.
*
@@ -430,7 +430,7 @@ class File_Match
// }}}
// {{{ doFind()
/**
* This starts the search/replace off. Call this to do the search.
* First do whatever files are specified, and/or if directories are specified,
@@ -447,7 +447,7 @@ class File_Match
if ($this->directories != '') $this->doDirectories($this->find_function);
}
}
// }}}
}
+5 -5
View File
@@ -32,7 +32,7 @@
*/
class File_SearchReplace
{
// {{{ Properties (All private)
var $find;
@@ -63,7 +63,7 @@ class File_SearchReplace
*
* @author Richard Heyes <richard.heyes@heyes-computing.net>
*/
function File_SearchReplace($find, $replace, $files, $directories = '', $include_subdir = 1, $ignore_lines = array())
function __construct($find, $replace, $files, $directories = '', $include_subdir = 1, $ignore_lines = array())
{
$this->find = $find;
@@ -367,7 +367,7 @@ class File_SearchReplace
// }}}
// {{{ writeout()
/**
* Function to writeout the file contents.
*
@@ -455,7 +455,7 @@ class File_SearchReplace
// }}}
// {{{ doSearch()
/**
* This starts the search/replace off. Call this to do the search.
* First do whatever files are specified, and/or if directories are specified,
@@ -472,7 +472,7 @@ class File_SearchReplace
if ($this->directories != '') $this->doDirectories($this->search_function);
}
}
// }}}
}