void
buildFutureURLComplete
( $directory, $extension, $itemid, $languageid)
-
$directory
-
$extension
-
$itemid
-
$languageid
Build a Filename that can be used for new Items or Language Versions.
If Item ID or Language ID is not passed, a random string will be generated, if the timestamp is missing, it uses the current timestamp.
void
buildInitialFilename
(extension $extension, [id $id = ''], [langid $langid = ''], [timestamp $timestamp = ''])
-
extension
$extension: the File Extension (for example 'html')
-
id
$id: the Item ID or an empty String
-
langid
$langid: the Language ID or an empty String
-
timestamp
$timestamp: the Timestamp or an empty String
Build a Filename that can be used for new Items or Language Versions.
This method gurantees to return a Filename that is unique within the given Directory and that can be used for creating new Files. It returns the new Filename WITHOUT the directory.
void
buildInitialFilenameDirectory
( $directory, $extension, [ $id = ''], [ $langid = ''], [ $timestamp = ''])
-
$directory
-
$extension
-
$id
-
$langid
-
$timestamp
May be accessed static.
void
buildURLComplete
( $directory, $extension, $itemid, $languageid, [ $timestamp = ''])
-
$directory
-
$extension
-
$itemid
-
$languageid
-
$timestamp
Static method to check if the given File is acessable and writeable.
boolean
checkFile
( $filename)
void
getFutureURL
( $item)
void
getFutureURLFull
( $item)
String
getHistoryURL
( $item)
String
getHistoryURLForTS
( $item, $timestamp)
String
getHistoryURLFull
( $item)
String
getHistoryURLFullForTS
( $item, $timestamp)
Static method to prepare a SQL Substring.
array
prepareSqlValues
( $id, $langid, [ $values = array()])
Saves the Content to the given File, by replacing the old File content.
void
saveContent
( $filename, $content)