Source for file MED_MIMETYPE.phpclass
Documentation is available at MED_MIMETYPE.phpclass
* Class file MED_MIMETYPE.phpclass
* @project Open CSP-Management
* @author Peter Krebs (pk) <p.krebs@amicas.at>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @requires $GLOBALS['OCSP']['DEFAULTCONFPATH']."media.conf.phpinc";
* @requires $GLOBALS['OCSP']['PHPINCPATH']."db/dbms_tableobj.phpclass";
require_once __OCSP_PHPINCPATH__.
"default_config/media.conf.phpinc";
require_once __OCSP_PHPINCPATH__.
"db/DBMS_TABLEOBJ.phpclass";
* @project Open CSP-Management
* @author Peter Krebs (pk) <p.krebs@lvus.at>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @staticvar string $myTable
* fields in $this->myTable starts with
* @staticvar string $colPrevix
* default only admin can upload any file type
* @var array $uploadGroups
* members of this group can download or view the file
* value array of DBMS_FORM Fields added to the input form
* init the object and populates the object if aId
* @param int $aId id of an existing template
* @param string $gDBIDX GLOBALS database Object index
function MED_MIMETYPE($aId=
0,$mimeType=
"",$gDBIDX=
"USRDB",$debug=
FALSE) {
if ($debug) echo
"<p><b>new MED_MIMETYPE($aId,$mimeType,$gDBIDX,$debug)</b> (".
get_class($this).
")</p><blockquote>";
$this->init($gDBIDX,$debug);
} else if (!empty($mimeType)) {
$query.=
$GLOBALS[$this->get_gDBIDX()]->qs_getSlashedValue($mimeType);
if ($row=
$GLOBALS[$this->get_gDBIDX()]->quickQuery($query)) {
* returns parent::getDBRow($withoutNull,$debug) after
* setting the non database objects to the column values
* @param bool $withoutNull null values are not added to the array
* @param bool $debug show debug info?
function getDBRow($withoutNull=
TRUE,$debug=
FALSE,$withoutOV=
False,$fldAutoPopulate=
True)
if ($debug) echo
"<p><b>MED_MIMETYPE::getDBRow($withoutNull,$debug)</b> (".
get_class($this).
")</p><blockquote>";
return parent::getDBRow($withoutNull,$debug);
* sets a database row to the object fields
* sets each key (=columname) value and the non DB object vars
* @param array $row the row form a select * from DBMS_TABLEOBJ::myTable
* @param bool $asPopulated set populateTS as if the object has been populated
function setDBRow($row,$asPopulated=
TRUE,$debug=
FALSE) {
if ($debug) echo
"<p><b>MED_MIMETYPE::setDBRow($row,$asPopulated,$debug)</b> (".
get_class($this).
")</p><blockquote>";
if (parent::setDBRow($row,$asPopulated,$debug)) {
Documentation generated on Thu, 08 Jan 2009 17:45:00 +0100 by phpDocumentor 1.4.0a2