]> git.andy128k.dev Git - ipf.git/commitdiff
cleanup
authorAndrey Kutejko <andy128k@gmail.com>
Tue, 17 Dec 2013 06:31:53 +0000 (08:31 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Tue, 17 Dec 2013 06:31:53 +0000 (08:31 +0200)
ipf/project.php
ipf/utils.php

index c75fb95e81b7b553682b3e27b33aa7998b6c38f4..643e642193d773f835e4d6496069af76127a273b 100644 (file)
@@ -31,11 +31,6 @@ final class IPF_Project
     {
     }
 
-    private function appClassName($name)
-    {
-        return $name . '_App';
-    }
-
     public function appList()
     {
         foreach($this->apps as $appName => &$app) {
@@ -52,8 +47,8 @@ final class IPF_Project
         if (!array_key_exists($name, $this->apps))
             throw new IPF_Exception_Panic("Application \"$name\" not found");
         if ($this->apps[$name] == null) {
-            $className = $this->appClassName($name);
-            $this->apps[$name] = new $className();
+            $className = $name.'_App';
+            $this->apps[$name] = new $className;
         }
         return $this->apps[$name];
     }
index b239d9a72656ed2a154d159bd2abadf0c37137b7..e459bde74d0a38d574cfb692da7bc7563cc0af61 100644 (file)
@@ -132,15 +132,6 @@ class IPF_Utils
         return null;
     }
 
-    static function appLabelByModel($model)
-    {
-        $app = self::appByModel($model);
-        if ($app)
-            return strtolower($app->getLabel());
-        else
-            return '';
-    }
-
     public static function insertDirectory($path, $directory)
     {
         $parts = pathinfo($path);