Example #1
0
 /**
  * Returns an array containing all application checks for a given application.
  *
  * @param string $appdir Containing path of the application to validate.
  * @return array Named array
  */
 public function getApplicationChecks($appdir)
 {
     $framework = $this->Info->getFrameworkCommonName($appdir);
     // writebale directories
     foreach ($this->frameworkRequirements[$framework]['writeables'] as $dir) {
         $result[] = $this->getWriteableDirectoryCheck($appdir . DS . $dir);
     }
     // cache and database
     $result[] = $this->getApplicationCacheCheck();
     $result[] = $this->getApplicationDatabaseCheck();
     return $result;
 }