phpDocumentor SGL
cms
[ class tree: SGL ] [ index: SGL ] [ all elements ]

Class: SGL_Finder_AssocContent

Source Location: /lib/Finder/Assoccontent.php

Class SGL_Finder_AssocContent

Class Overview

Associated contents filter.

Located in /lib/Finder/Assoccontent.php [line 23]

SGL_Finder
   |
   --SGL_Finder_Content
      |
      --SGL_Finder_AssocContent
Author(s): Information Tags:

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From SGL_Finder_Content

SGL_Finder_Content::$_aMedia

Inherited From SGL_Finder

SGL_Finder::$_aAttributes
SGL_Finder::$_aFilters
SGL_Finder::$_aTypeIds
SGL_Finder::$_paginated

Inherited From SGL_Finder_Content

SGL_Finder_Content::__construct()
SGL_Finder_Content::addFilter()
SGL_Finder_Content::getMediaFilters()
SGL_Finder_Content::retrieve()
SGL_Finder_Content::_buildSearchQuery()
SGL_Finder_Content::_createContents()
Returns SGL_Content collection.
SGL_Finder_Content::_decorateContents()
Adds media attribute to SGL_Content object

Inherited From SGL_Finder

SGL_Finder::addFilter()
Used to add filters and build dynamic Finder objects.
SGL_Finder::factory()
Used to create concrete Finder implementations.
SGL_Finder::getAttributeFilters()
Returns an array of attribute filters.
SGL_Finder::getFilters()
Returns an array of the Finder's filters.
SGL_Finder::getPager()
Gets Pager object.
SGL_Finder::paginate()
Prepares results for pagination.
SGL_Finder::retrieve()
Returns the array collection of content objects.
SGL_Finder::setPager()
Sets up Pager object.
SGL_Finder::_maintainPagerState()
Retrieves and maintains pager options.
SGL_Finder::_prepareAttribConstraint()
Prepare constraint to match against attribute props.
SGL_Finder::_prepareCategoryConstraint()
Enter description here...
SGL_Finder::_prepareContentConstraint()
Prepare constraint to match against attribute props
SGL_Finder::_prepareLimit()
Get limit value.
SGL_Finder::_prepareOrdering()
Prepare ordering.

[ Top ]
Method Summary
void   addFilter()   Adds a filter to SGL_Finder to constrain results.
void   buildSearchQuery()  
void   retrieve()  
void   _prepareAssocConstraint()  

[ Top ]
Methods
addFilter  [line 73]

  void addFilter( string $filterName, mixed $filterValue  )

Adds a filter to SGL_Finder to constrain results.

  1.  // 1) Getting contents, which are linked to content with content_id = ID.
  2.  $aContents SGL_Finder::factory('AssocContent')
  3.      ->addFilter('assocContents'array('parentId' => ID))
  4.      ->retrieve();
  5.  
  6.  // 2) Getting contents, which are parent to content with content_id = ID.
  7.  $aContents SGL_Finder::factory('AssosContent')
  8.      ->addFilter('assocContents'array('childId' => ID))
  9.      ->retrieve();

Parameters:
string   $filterName: 
mixed   $filterValue: 

API Tags:
Access:  public


Redefinition of:
SGL_Finder_Content::addFilter()

[ Top ]
buildSearchQuery  [line 27]

  void buildSearchQuery( )



[ Top ]
retrieve  [line 47]

  void retrieve( )


API Tags:
Access:  public


Redefinition of:
SGL_Finder_Content::retrieve()

[ Top ]
_prepareAssocConstraint  [line 96]

  void _prepareAssocConstraint( )


API Tags:
Access:  protected


[ Top ]

Documentation generated on Thu, 25 Dec 2008 22:04:51 +0000 by phpDocumentor 1.4.1