src/noorm/Persistent.php
public static function SetDirectory($dir) {
    if (!is_dir($dir)) {
      if (!@\mkdir($dir, 0700, TRUE)) {
        throw new \InvalidArgumentException("dir $dir does not exist and could not be created");
      }
    }

    self::$DIR = realpath($dir);
  }
public static function SetDirectory($dir) {
    if (!is_dir($dir)) {
      if (!@\mkdir($dir, 0700, TRUE)) {
        throw new \InvalidArgumentException("dir $dir does not exist and could not be created");
      }
    }

    self::$DIR = realpath($dir);
  }
public static function SetDirectory ( $ dir ) { if ( ! is_dir ( $ dir ) ) { if ( ! @ \ mkdir ( $ dir , 0700 , TRUE ) ) { throw new \ InvalidArgumentException ( "dir $dir does not exist and could not be created" ) ; } } self :: $ DIR = realpath ( $ dir ) ; }
Set directory where all persistent objects and relations will be saved.
@param String $dir
@throws \InvalidArgumentException
Set directory where all persistent objects and relations will be saved .