OXID eShop CE
4.9.10
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
content_list.php
Go to the documentation of this file.
1
<?php
2
9
class
Content_List
extends
oxAdminList
10
{
11
17
protected
$_sListClass
=
'oxcontent'
;
18
24
protected
$_sListType
=
'oxcontentlist'
;
25
32
public
function
render
()
33
{
34
parent::render
();
35
36
$sFolder =
oxRegistry::getConfig
()->getRequestParameter(
"folder"
);
37
$sFolder = $sFolder ? $sFolder : -1;
38
39
$this->_aViewData[
"folder"
] = $sFolder;
40
$this->_aViewData[
"afolder"
] = $this->
getConfig
()->getConfigParam(
'aCMSfolder'
);
41
42
return
"content_list.tpl"
;
43
}
44
53
protected
function
_prepareWhereQuery
($aWhere, $sqlFull)
54
{
55
$sQ =
parent::_prepareWhereQuery
($aWhere, $sqlFull);
56
$sFolder =
oxRegistry::getConfig
()->getRequestParameter(
'folder'
);
57
$sViewName = getviewName(
"oxcontents"
);
58
59
//searchong for empty oxfolder fields
60
if
($sFolder ==
'CMSFOLDER_NONE'
|| $sFolder ==
'CMSFOLDER_NONE_RR'
) {
61
$sQ .=
" and {$sViewName}.oxfolder = '' "
;
62
} elseif ($sFolder && $sFolder !=
'-1'
) {
63
$sFolder =
oxDb::getDb
()->quote($sFolder);
64
$sQ .=
" and {$sViewName}.oxfolder = {$sFolder}"
;
65
}
66
67
68
return
$sQ;
69
}
70
}
application
controllers
admin
content_list.php
Generated by
1.8.1.2