db
FileDescription Class Reference

Inherits AbstractPropertyDescription.

Inherited by ImageDescription.

Public Member Functions

 __construct (ClassDescription $classDesctiption, $propertyName, $columnName, $columnReturnName, $notNull, array $parameters=[])
 
 parse ($value, $object)
 
 serialize ($value, $object)
 
 getPdoDataType ($value)
 
 isWebVisible ()
 
 getStorageDir ($object)
 
 getObjectStorageDir ($object)
 
- Public Member Functions inherited from AbstractPropertyDescription
 __construct (ClassDescription $classDesctiption, $propertyName, $columnName, $columnReturnName, $notNull)
 
 parse ($value, $object)
 
 serialize ($value, $object)
 
 getPropertyName ()
 
 getColumnName ()
 
 getNotNull ()
 
 getDbDataType ()
 
 getAnsiDataType ()
 
 getPdoDataType ($value)
 
 getColumnReturnName ()
 
 __toString ()
 

Protected Member Functions

 isInFileStorage (File $file, $object)
 
- Protected Member Functions inherited from AbstractPropertyDescription
 extractParameter ($parameterName, array &$definitions, $raiseExceprionIfNotPresent=false, $default=NULL)
 

Protected Attributes

 $webVisible = true
 
 $fileDir = NULL
 
 $storageDir = NULL
 
 $missingFileFilePath = NULL
 
 $log
 
- Protected Attributes inherited from AbstractPropertyDescription
 $classDesctiption
 
 $propertyName
 
 $columnName
 
 $columnReturnName
 
 $notNull = false
 
 $dbDataType
 
 $ansiDataType
 
 $pdoDataType
 

Additional Inherited Members

- Public Attributes inherited from AbstractPropertyDescription
const ANSI_DATA_TYPE_CHAR_VARYING = "varchar"
 
const ANSI_DATA_TYPE_INT = "int"
 
const ANSI_DATA_TYPE_BOOLEAN = "boolean"
 
const ANSI_DATA_TYPE_FLOAT = "float"
 
const ANSI_DATA_TYPE_DATE = "date"
 
const ANSI_DATA_TYPE_TIME = "time"
 
const ANSI_DATA_TYPE_TIMESTAMP = "timestamp"
 
const ANSI_DATA_TYPE_BIT_VARYING = "bitvarying"
 

Detailed Description

Popis pukladani soubou

Constructor & Destructor Documentation

◆ __construct()

__construct ( ClassDescription  $classDesctiption,
  $propertyName,
  $columnName,
  $columnReturnName,
  $notNull,
array  $parameters = [] 
)
Parameters
string$propertyName
string$columnName
boolean$notNull
array$parameters

Member Function Documentation

◆ getObjectStorageDir()

getObjectStorageDir (   $object)

vrati informace do ktereho adresare se maji nahrat soubory pro objekt

Parameters
object$object

◆ getPdoDataType()

getPdoDataType (   $value)

◆ getStorageDir()

getStorageDir (   $object)

vrati informace do ktereho adresare souboru se ma nahrat

Parameters
object$object

◆ isInFileStorage()

isInFileStorage ( File  $file,
  $object 
)
protected

vraci ture pokud je soubor v uz soubor ulozeni ve storage

Parameters
File$file
Returns
type

◆ isWebVisible()

isWebVisible ( )

◆ parse()

parse (   $value,
  $object 
)

◆ serialize()

serialize (   $value,
  $object 
)
Parameters
File$value
Returns
string
Exceptions
Exception

Member Data Documentation

◆ $fileDir

$fileDir = NULL
protected

◆ $log

$log
protected

◆ $missingFileFilePath

$missingFileFilePath = NULL
protected

◆ $storageDir

$storageDir = NULL
protected

◆ $webVisible

$webVisible = true
protected

The documentation for this class was generated from the following file: