contenido\plugins\content_allocation\classes\class.content_allocation.php

Show: PublicProtectedPrivateinherited
Table of Contents
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  

\pApiContentAllocation

Package: Default

Properties

>VPropertypublic$client = null
Default valuenullDetails
Type
n/a
>VPropertypublic\DB_Contenido $db = null
References database object
Default valuenullDetails
Type
\DB_Contenido
>VPropertypublic$lang = null
Default valuenullDetails
Type
n/a
>VPropertypublic$table = null
Default valuenullDetails
Type
n/a
>VPropertypublic$treeObj = null
Default valuenullDetails
Type
n/a

Methods

methodpublic_buildQuery(array $restrictions,  $aCategoriesToExclude,  $max) : string

Build query to find matching content by content allocation

Parameters
NameTypeDescription
$restrictionsarray
$aCategoriesToExclude
$max
Returns
TypeDescription
stringSQL
methodpublic_buildQuery_MatchingContentByCategories( $aCategories,  $iOffset,  $iNumOfRows) : void

build SQL query to find articles by catgories

Parameters
NameTypeDescription
$aCategories
$iOffset
$iNumOfRows
methodpublic_buildQuery_MatchingContentByContentAllocationByCategories( $aContentAllocation,  $aCategories,  $iOffset,  $iNumOfRows) : void

build SQL query to find articles by content allocation and catgories

Parameters
NameTypeDescription
$aContentAllocation
$aCategories
$iOffset
$iNumOfRows
methodpublicdeleteAllocations( $idpica_alloc) : void

Parameters
NameTypeDescription
$idpica_alloc
methodpublicdeleteAllocationsByIdartlang( $idartlang) : void

Parameters
NameTypeDescription
$idartlang
methodpublicfindMatchingContent(array $restrictions = null,  $max = 0) : string

Build query to find matching content by content allocation

Parameters
NameTypeDescription
$restrictionsarray
$max
Returns
TypeDescription
stringSQL
Details
Modified
17.11.2005 by Willi Man  
methodpublicfindMatchingContentByCategories(array $aCategories = array(), int $iOffset = 0, int $iNumOfRows = 0, string $sResultType = '') : array

Search articles by catgories without start articles

Parameters
NameTypeDescription
$aCategoriesarray
$iOffsetint
$iNumOfRowsint
$sResultTypestring

element of {article_id, object}

Returns
TypeDescription
arrayof articles
methodpublicfindMatchingContentByContentAllocationByCategories(array $aContentAllocation, array $aCategories = array(),  $iOffset = 0,  $iNumOfRows = 0) : array

Search articles by content allocation and catgories

Parameters
NameTypeDescription
$aContentAllocationarray
$aCategoriesarray
$iOffset
$iNumOfRows
Returns
TypeDescription
arrayof articles
methodpublicloadAllocations( $idartlang) : void

Parameters
NameTypeDescription
$idartlang
methodpublicloadAllocationsWithNames( $idartlang,  $parent,  $firstonly = false) : void

Parameters
NameTypeDescription
$idartlang
$parent
$firstonly
methodpublicpApiContentAllocation() : void

Details
Modified
27.10.2005 new class variable $this->bDebug (if true print debug information)  
methodpublicstoreAllocations( $idartlang,  $allocations) : void

Parameters
NameTypeDescription
$idartlang
$allocations
Documentation was generated by phpDocumentor 2.0.0a12.