contenido\plugins\content_allocation\classes\class.content_allocation.php
Project:
Contenido Content Management System
Description:
Search articles by content allocation
Requirements:
- Author
- Marco Jahn
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend plugins
- Since
- file available since contenido release <= 4.6
{@internal
created 2005
modified 2005-10-27, Willi Man, debug option
modified 2005-11-16, Willi Man, new method findMatchingContentByContentAllocationByCategories
modified 2005-11-21, Willi Man, new method findMarchingCOntentByContentAllocation_OR_Categories
modified 2008-04-06, Holger Librenz, direct mysql_* calls remoced, using DB_Contenido:: methods instead
modified 2008-07-02, Frederic Schneider, add security fix
modified 2011-08-23, Dominik Ziegler, added check for empty arrays [#CON-423]
$Id: class.content_allocation.php 1511 2011-08-23 14:39:45Z dominik.ziegler $:
}}
- Version
- 0.7.9
Package: Default
Properties



\DB_Contenido $db = null
References database object
Default valuenull
Details- Type
- \DB_Contenido
Methods



_buildQuery(array $restrictions, $aCategoriesToExclude, $max) : string
Build query to find matching content by content allocation
ParametersName | Type | Description |
---|
$restrictions | array | |
---|
$aCategoriesToExclude | | |
---|
$max | | |
---|
Returns 


_buildQuery_MatchingContentByCategories( $aCategories, $iOffset, $iNumOfRows) : void
build SQL query to find articles by catgories
ParametersName | Type | Description |
---|
$aCategories | | |
---|
$iOffset | | |
---|
$iNumOfRows | | |
---|



_buildQuery_MatchingContentByContentAllocationByCategories( $aContentAllocation, $aCategories, $iOffset, $iNumOfRows) : void
build SQL query to find articles by content allocation and catgories
ParametersName | Type | Description |
---|
$aContentAllocation | | |
---|
$aCategories | | |
---|
$iOffset | | |
---|
$iNumOfRows | | |
---|



findMatchingContent(array $restrictions = null, $max = 0) : string
Build query to find matching content by content allocation
ParametersName | Type | Description |
---|
$restrictions | array | |
---|
$max | | |
---|
ReturnsDetails- Modified
- 17.11.2005 by Willi Man



findMatchingContentByCategories(array $aCategories = array(), int $iOffset = 0, int $iNumOfRows = 0, string $sResultType = '') : array
Search articles by catgories without start articles
ParametersName | Type | Description |
---|
$aCategories | array | |
---|
$iOffset | int | |
---|
$iNumOfRows | int | |
---|
$sResultType | string | element of {article_id, object}
|
---|
ReturnsType | Description |
---|
array | of articles |



findMatchingContentByContentAllocationByCategories(array $aContentAllocation, array $aCategories = array(), $iOffset = 0, $iNumOfRows = 0) : array
Search articles by content allocation and catgories
ParametersName | Type | Description |
---|
$aContentAllocation | array | |
---|
$aCategories | array | |
---|
$iOffset | | |
---|
$iNumOfRows | | |
---|
ReturnsType | Description |
---|
array | of articles |