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 = nullReferences database object
Default valuenullDetails- Type
- \DB_Contenido
Methods



_buildQuery(array $restrictions, $aCategoriesToExclude, $max) : stringBuild query to find matching content by content allocation
Parameters| Name | Type | Description |
|---|
| $restrictions | array | |
|---|
| $aCategoriesToExclude | | |
|---|
| $max | | |
|---|
Returns 


_buildQuery_MatchingContentByCategories( $aCategories, $iOffset, $iNumOfRows) : voidbuild SQL query to find articles by catgories
Parameters| Name | Type | Description |
|---|
| $aCategories | | |
|---|
| $iOffset | | |
|---|
| $iNumOfRows | | |
|---|



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



findMatchingContent(array $restrictions = null, $max = 0) : stringBuild query to find matching content by content allocation
Parameters| Name | 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 = '') : arraySearch articles by catgories without start articles
Parameters| Name | Type | Description |
|---|
| $aCategories | array | |
|---|
| $iOffset | int | |
|---|
| $iNumOfRows | int | |
|---|
| $sResultType | string | element of {article_id, object}
|
|---|
Returns| Type | Description |
|---|
| array | of articles |



findMatchingContentByContentAllocationByCategories(array $aContentAllocation, array $aCategories = array(), $iOffset = 0, $iNumOfRows = 0) : arraySearch articles by content allocation and catgories
Parameters| Name | Type | Description |
|---|
| $aContentAllocation | array | |
|---|
| $aCategories | array | |
|---|
| $iOffset | | |
|---|
| $iNumOfRows | | |
|---|
Returns| Type | Description |
|---|
| array | of articles |