16 $this->contextRoot = $this->normalizeContextRoot($contextRoot);
17 $this->file = $this->normalizeFile(
$file);
45 if (is_dir(
$path) && ($realPath = realpath(
$path)) !==
false) {
58 return ($this->contextRoot === $this->normalizeContextRoot($contextRoot));
68 return ($this->file === $this->normalizeFile(
$file));
79 return ($this->matchContextRoot($contextRoot) && $this->matchFile(
$file));
89 $lines[] = sprintf(
"# BEGIN:FREEDOM_CRONTAB:%s:%s", $this->contextRoot, $this->file);
90 foreach ($this->childs as & $child) {
91 $lines[] = (string)$child;
93 $lines[] = sprintf(
"# END:FREEDOM_CRONTAB:%s:%s", $this->contextRoot, $this->file);
94 return implode(
"\n", $lines);
match($contextRoot, $file)
matchContextRoot($contextRoot)
__construct($contextRoot, $file)
normalizeContextRoot($path)