public static function useCache($cacheDir = null, $expiredTime = 0, $cacheId = null) { self::$_useCache = $cacheDir; self::$_expiredTime = intval($expiredTime); self::$_cacheId = $cacheId; }
#!/usr/bin/env php <?php define('RO_BASE_PATH', dirname(dirname(__FILE__))); require RO_BASE_PATH . '/Loader.php'; RO_Loader::register(RO_BASE_PATH, 'RO_'); if (RO_Util_CLI::isCLI() && RO_Util_CLI::isMain()) { exit(RO_Util_FlowVisualizer::__main__()); } class RO_Util_FlowVisualizer { protected $_configFile = ''; protected $_name = ''; public function __construct($configFile, $name = '') { $this->_configFile = realpath($configFile); $this->name($name); } /** * * @return RO_Util_FlowVisualizer */ public function name($name = null) { if (is_null($name)) { return $this->_name ? $this->_name : str_replace('.', '_', basename($this->_configFile)); } else { $this->_name = $name; return $this; } } public function generate()