Sitellite Application Framework
Class Tree         Index         All Elements

Class: Tagger

Source Location: Program_Root/GUI/Tagger.php

Class Overview


Generates a series of tag names linking to a source of data. The names are alphabetical and organized into 6 different sizes so as to visually display which tags contain the most data.


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 56]
Generates a series of tag names linking to a source of data. The names are alphabetical and organized into 6 different sizes so as to visually display which tags contain the most data.

Query types:

  1. Single table
create table news ( id title category body )

select category as tag, count(*) as count from news group by category asc

Constructor:

$tagger = new Tagger (array ('news', 'category'));

2. Separate category table

create table news ( id title category_id body )

create table news_category ( id name )

select news_category.name as tag, count(*) as count from news, news_category where news.category_id = news_category.id group by news_category.name asc

Constructor:

$tagger = new Tagger ( array ('news', 'category_id'), array ('news_category', 'id', 'name') );




[ Top ]


Class Variables

$data_col =

[line 58]


Type:   mixed


[ Top ]

$data_table =

[line 57]


Type:   mixed


[ Top ]

$tag_col =

[line 61]


Type:   mixed


[ Top ]

$tag_table =

[line 59]


Type:   mixed


[ Top ]

$tag_table_key =

[line 60]


Type:   mixed


[ Top ]



Class Methods


constructor Tagger [line 63]

Tagger Tagger( mixed $data_table, [mixed $tag_table = false])



[ Top ]

method display [line 128]

void display( [mixed $url = 0])



[ Top ]

method fetch [line 75]

void fetch( )



[ Top ]

method getLevel [line 98]

void getLevel( mixed $n, mixed $b, mixed $c)



[ Top ]


Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:19:47 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2