Пример #1
0
 /**
  * @return array
  */
 public function getAreaDirs()
 {
     return Pimcore_ExtensionManager::getBrickDirectories();
 }
 public static function delete($id, $type)
 {
     if ($type == "plugin") {
         $pluginDir = PIMCORE_PLUGINS_PATH . "/" . $id;
         if (is_writeable($pluginDir)) {
             recursiveDelete($pluginDir, true);
         }
     } else {
         if ($type == "brick") {
             $brickDirs = Pimcore_ExtensionManager::getBrickDirectories();
             $brickDir = $brickDirs[$id];
             if (is_writeable($brickDir)) {
                 recursiveDelete($brickDir, true);
             }
         }
     }
 }