OXID eShop CE
4.8.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
{
16
protected
$_sListClass
=
'oxcontent'
;
17
23
protected
$_sListType
=
'oxcontentlist'
;
24
31
public
function
render
()
32
{
33
parent::render
();
34
35
$sFolder =
oxConfig::getParameter
(
"folder"
);
36
$sFolder = $sFolder ? $sFolder : -1;
37
38
$this->_aViewData[
"folder"
] = $sFolder;
39
$this->_aViewData[
"afolder"
] = $this->
getConfig
()->getConfigParam(
'aCMSfolder'
);
40
return
"content_list.tpl"
;
41
}
42
51
protected
function
_prepareWhereQuery
( $aWhere, $sqlFull )
52
{
53
$sQ =
parent::_prepareWhereQuery
( $aWhere, $sqlFull );
54
$sFolder =
oxConfig::getParameter
(
'folder'
);
55
$sViewName = getviewName(
"oxcontents"
);
56
57
//searchong for empty oxfolder fields
58
if
( $sFolder ==
'CMSFOLDER_NONE'
|| $sFolder ==
'CMSFOLDER_NONE_RR'
) {
59
$sQ .=
" and {$sViewName}.oxfolder = '' "
;
60
} elseif ( $sFolder && $sFolder !=
'-1'
) {
61
$sFolder =
oxDb::getDb
()->quote( $sFolder );
62
$sQ .=
" and {$sViewName}.oxfolder = {$sFolder}"
;
63
}
64
65
66
return
$sQ;
67
}
68
69
}
application
controllers
admin
content_list.php
Generated by
1.8.1.2