Class Stream
Basic Stream
- Model
-
AppModel
-
BEAppModel
-
Stream
Modifiedby: $LastChangedBy$
Lastmodified:
$LastChangedDate$
$Id$
Located at models/objects/content/stream.php
Methods summary
public
|
|
public
|
#
getCategoryMediaType( string $mimeType, string $modelType )
Get default category media type from mime and model |
public
array
|
#
updateStreamFields( integer $id = null )
Update fields in streams table: url friendly name, mime type, file size, hash |
public
mixed,
|
#
clearMediaCache( integer $id = null )
Clears media cache, using both new cache structure ($mediaRoot/cache) and old structure. See: https://github.com/bedita/bedita/issues/352 |
public
mixed
|
|
public
string
|
#
getMimeType( $path, $filename = null )
get mime type by finfo_open (if function exist) or by file extension |
public
string
|
|
public
|
|
public
array
|
|
public
|
#
appendStreamFields( array $objects, array $options = array() )
append stream fields to objects array |
public
string
|
#
copyFileToMediaFolder( string $source, string $destPath )
Copy $name to $destPath using BEdita media logic (it's not a direct copy of the file) Create md5-named subfolders for file |
public
array
|
#
apiUploadQuota( array $uploadableObjects, array $user, object $event )
Given an array of uploadable object types and a user it calculate the quota occupied and the total number of multimedia objects for that user divided by type. |
Methods inherited from BEAppModel
am(),
buildQueryStatement(),
checkDate(),
checkDuration(),
checkFloat(),
checkNumber(),
containLevel(),
email(),
fieldsString(),
findObjects(),
findObjectsAfterFilter(),
findObjectsClauses(),
findObjectsCount(),
getBindingsLevel(),
getDefaultDateFormat(),
getDriver(),
getEndQuote(),
getLimitClausole(),
getStartQuote(),
setBindingsLevel(),
setupDbParams(),
toolbar()
Methods inherited from AppModel
Properties summary
private
array
|
$mimeTypes
of mime types |
#
array()
|