Skip to content

Commit

Permalink
tabs => spaces
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Translation2/trunk@157209 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
quipo committed Apr 26, 2004
1 parent 1f45d18 commit 19da2be
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions Decorator/CacheLiteFunction.php
Expand Up @@ -46,41 +46,41 @@ class Translation2_Decorator_CacheLiteFunction extends Translation2_Decorator
var $cacheLiteFunction = null;

/**
* @var int (default 1)
* @access private
*/
var $tempVarNameGenerator = 1;

/**
* @var string
* @access private
*/
var $tempVarName = null;

/**
* Cache lifetime (in seconds)
* @var int (default 1)
* @access private
*/
var $tempVarNameGenerator = 1;

/**
* @var string
* @access private
*/
var $tempVarName = null;

/**
* Cache lifetime (in seconds)
* @var int $lifeTime
* @access private
*/
var $lifeTime = 3600;
* @access private
*/
var $lifeTime = 3600;

/**
* Directory where to put the cache files
/**
* Directory where to put the cache files
* (make sure to add a trailing slash)
* @var string $cacheDir
* @access private
*/
var $cacheDir = '/tmp/';
* @access private
*/
var $cacheDir = '/tmp/';

/**
* Directory where to put the cache files
/**
* Directory where to put the cache files
* (make sure to add a trailing slash)
* @var string $cacheDir
* @access private
*/
var $fileLocking = true;
* @access private
*/
var $fileLocking = true;

/**
/**
* Enable / disable caching
* (can be very useful to debug cached scripts)
* @var boolean $caching
Expand Down Expand Up @@ -111,12 +111,12 @@ function _prepare()
if (is_null($this->tempVarName)) {
$prefix = 'translation2_temp_';
$var = $this->tempVarNameGenerator++;
if ($var > 26) {
$this->tempVarName = $prefix. chr(64 + $var % 26) . chr(64 + $var / 26);
} else {
$this->tempVarName = $prefix. chr(64 + $var);
}
}
if ($var > 26) {
$this->tempVarName = $prefix. chr(64 + $var % 26) . chr(64 + $var / 26);
} else {
$this->tempVarName = $prefix. chr(64 + $var);
}
}
}

// }}}
Expand Down

0 comments on commit 19da2be

Please sign in to comment.