Class: Filetype
Source Location: /blogs/inc/files/model/_filetype.class.php
Class Filetype
Class Overview
|
Filetype Class Located in /blogs/inc/files/model/_filetype.class.php [line 43] DataObject | --FiletypeAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObject |
Inherited From DataObject
|
[ Top ]
Property Summary
Method Summary
| Filetype | Filetype() | Constructor |
| array | get_extensions() | Get list of extensions for this filetype. |
| string | get_icon() | Return the img html code of the icon |
| boolean | load_from_Request() | Load data from Request form fields. |
| boolean | set() | Set param value |
[ Top ]
Properties
Methods
Constructor Filetype [line 57]
|
Constructor
Parameters:| table | $db_row: | Database row |
[ Top ]
get_extensions [line 197]
|
Get list of extensions for this filetype.
The first is being considered the default / most appropriate one.
[ Top ]
load_from_Request [line 88]
|
Load data from Request form fields.
API Tags:
| Return: | true if loaded data seems valid. |
[ Top ]
set [line 159]
|
Set param value
By default, all values will be considered strings
Parameters:| string | $parname: | parameter name |
| mixed | $parvalue: | parameter value |
| boolean | $make_null: | true to set to NULL if empty value |
API Tags:
| Return: | true, if a value has been set; false if it has not changed |
Redefinition of:
- DataObject::set()
- Set param value
[ Top ]
