Class Ansel_Tags_Search

Description

Class that represents a slice of a tag search

Located in /lib/Tags.php (line 468)


	
			
Variable Summary
 mixed $_dirty
 mixed $_owner
 mixed $_tags
 mixed $_totalCount
Method Summary
 Ansel_Tags_Search Ansel_Tags_Search ([array $tags = null], [ $owner = null])
 void addTag ( $tag_id)
 array count ()
 void getRelatedTags ()
 Array getSlice ( $page,  $perpage)
 void getTags ()
 void getTagTrail ()
 void removeTag ( $tag_id)
 void save ()
 void tagCount ()
 void _sortTagInfo ( $a,  $b)
Variables
mixed $_dirty = false (line 473)
mixed $_owner = null (line 472)
mixed $_tags = array() (line 470)
mixed $_totalCount = null (line 471)
Methods
Constructor Ansel_Tags_Search (line 481)

Constructor

Ansel_Tags_Search Ansel_Tags_Search ([array $tags = null], [ $owner = null])
  • array $tags: An array of tag_ids to match. If null is passed then the tags will be loaded from the session.
  • $owner
addTag (line 564)

Add a tag to the cumulative tag search

void addTag ( $tag_id)
  • $tag_id
count (line 637)

Get the total number of resources that match.

  • return: Hash containing totals for both 'galleries' and 'images'.
array count ()
getRelatedTags (line 659)

Get a list of tags related to this search

void getRelatedTags ()
getSlice (line 506)

Fetch the matching resources that should appear on the current page

  • return: of Ansel_Images and Ansel_Galleries | PEAR_Error
Array getSlice ( $page,  $perpage)
  • $page
  • $perpage
getTags (line 590)

Get the list of currently choosen tags

void getTags ()
getTagTrail (line 599)

Get breadcrumb style navigation html for choosen tags

void getTagTrail ()
removeTag (line 575)

Remove a tag from the cumulative search

void removeTag ( $tag_id)
  • $tag_id
save (line 495)

Save the current search to the session

void save ()
tagCount (line 627)

Get the total number of tags included in this search.

void tagCount ()
_sortTagInfo (line 683)
void _sortTagInfo ( $a,  $b)
  • $a
  • $b

Documentation generated on Sun, 30 Jan 2011 05:08:49 +0000 by phpDocumentor 1.4.3