diff options
author | 2010-02-03 13:41:17 +0000 | |
---|---|---|
committer | 2010-02-03 13:41:17 +0000 | |
commit | f1077f05773037ea78d2d62c7367cdc3eecd6e09 (patch) | |
tree | 889c667d3b84911b9a4724a6d7aee27b377b44c7 /class.portage.package.mask.php | |
parent | Use singleton (diff) | |
download | znurt-org-backend-f1077f05773037ea78d2d62c7367cdc3eecd6e09.tar.gz znurt-org-backend-f1077f05773037ea78d2d62c7367cdc3eecd6e09.tar.bz2 znurt-org-backend-f1077f05773037ea78d2d62c7367cdc3eecd6e09.zip |
Stop extending PortageTree and use singleton instead
git-svn-id: file:///var/svn/portage@80 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
Diffstat (limited to 'class.portage.package.mask.php')
-rw-r--r-- | class.portage.package.mask.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/class.portage.package.mask.php b/class.portage.package.mask.php index c23d570..81dcb8a 100644 --- a/class.portage.package.mask.php +++ b/class.portage.package.mask.php @@ -1,13 +1,16 @@ <? - class PackageMask extends PortageTree { + class PackageMask { private $filename; private $mtime; function __construct($profile = 'portage') { - parent::__construct(); + global $hits; + $hits['package_mask']++; + + $tree =& PortageTree::singleton(); switch($profile) { @@ -17,7 +20,7 @@ } - $this->filename = $this->getTree()."/profiles/$filename"; + $this->filename = $tree->getTree()."/profiles/$filename"; $this->mtime = filemtime($this->filename); } |