public function getAllEnvActivity()
    {
        $directory = array();
        $iterator = new DirectoryIterator(FEnv::get("framework.cache"));
        foreach ($iterator as $dir_info) {
            if ($dir_info->isDir() && !$dir_info->isDot()) {
                $octal_perms = substr(sprintf('%o', $dir_info->getPerms()), -4);
                $perms = false;

                if ($octal_perms == "0777" || $octal_perms == "0775"  || $octal_perms == "0755" ||
                    $octal_perms == "7775" || $octal_perms == "7777" || $octal_perms == "7755") {
                    $perms = true;
                }
                array_push($directory, array("path" => $dir_info->getRealPath(), "name" => $dir_info->getFilename(),
                    "size" => ($this->fileSizeConvert($this->folderSize($dir_info->getRealPath()))),
                    "nperms" => $octal_perms,
                    "perms" => $perms, "status" => (($this->checkFolderIsEmptyOrNot(FEnv::get("framework.cache").
                            $dir_info->getFilename()) == true)? "Empty" : "Not empty"),
                    "env" => $dir_info->getFilename(),
                    "clear" => $this->generateRoute(
                        "iumio_manager_cache_manager_remove",
                        array("env" => $dir_info->getFilename()),
                        null,
                        true
                    )));
            }
        }

        return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => $directory)));
    }
public function getAllEnvActivity()
    {
        $directory = array();
        $iterator = new DirectoryIterator(FEnv::get("framework.cache"));
        foreach ($iterator as $dir_info) {
            if ($dir_info->isDir() && !$dir_info->isDot()) {
                $octal_perms = substr(sprintf('%o', $dir_info->getPerms()), -4);
                $perms = false;

                if ($octal_perms == "0777" || $octal_perms == "0775"  || $octal_perms == "0755" ||
                    $octal_perms == "7775" || $octal_perms == "7777" || $octal_perms == "7755") {
                    $perms = true;
                }
                array_push($directory, array("path" => $dir_info->getRealPath(), "name" => $dir_info->getFilename(),
                    "size" => ($this->fileSizeConvert($this->folderSize($dir_info->getRealPath()))),
                    "nperms" => $octal_perms,
                    "perms" => $perms, "status" => (($this->checkFolderIsEmptyOrNot(FEnv::get("framework.cache").
                            $dir_info->getFilename()) == true)? "Empty" : "Not empty"),
                    "env" => $dir_info->getFilename(),
                    "clear" => $this->generateRoute(
                        "iumio_manager_cache_manager_remove",
                        array("env" => $dir_info->getFilename()),
                        null,
                        true
                    )));
            }
        }

        return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => $directory)));
    }
public function getAllEnvActivity ( ) { $ directory = array ( ) ; $ iterator = new DirectoryIterator ( FEnv :: get ( "framework.cache" ) ) ; foreach ( $ iterator as $ dir_info ) { if ( $ dir_info -> isDir ( ) && ! $ dir_info -> isDot ( ) ) { $ octal_perms = substr ( sprintf ( '%o' , $ dir_info -> getPerms ( ) ) , - 4 ) ; $ perms = false ; if ( $ octal_perms == "0777" || $ octal_perms == "0775" || $ octal_perms == "0755" || $ octal_perms == "7775" || $ octal_perms == "7777" || $ octal_perms == "7755" ) { $ perms = true ; } array_push ( $ directory , array ( "path" => $ dir_info -> getRealPath ( ) , "name" => $ dir_info -> getFilename ( ) , "size" => ( $ this -> fileSizeConvert ( $ this -> folderSize ( $ dir_info -> getRealPath ( ) ) ) ) , "nperms" => $ octal_perms , "perms" => $ perms , "status" => ( ( $ this -> checkFolderIsEmptyOrNot ( FEnv :: get ( "framework.cache" ) . $ dir_info -> getFilename ( ) ) == true ) ? "Empty" : "Not empty" ) , "env" => $ dir_info -> getFilename ( ) , "clear" => $ this -> generateRoute ( "iumio_manager_cache_manager_remove" , array ( "env" => $ dir_info -> getFilename ( ) ) , null , true ) ) ) ; } } return ( ( new Renderer ( ) ) -> jsonRenderer ( array ( "code" => 200 , "results" => $ directory ) ) ) ; }
Get all cache directory
@return Renderer
@throws
Get all cache directory