BIF3
[ class tree: BIF3 ] [ index: BIF3 ] [ all elements ]

Class: MySQLList

Source Location: /Widgets/MySQL/MySQLList.php

Class Overview

PEAR
   |
   --BifWidget
      |
      --MySQLList

This an abstract widget to display lists.


Author(s):

Version:

  • $Revision: 1.11 $

Methods


Child classes:

LasNoticias
Brief news' list with a link 'Read more'
Noticia
News' list.
ResumenNoticias
Brief news' list, similar to LasNoticias, diferent look (usuarlly more compact)
MyLinks
Links table.
MyTitleBoxLink
TitleBoxLink in MySQL

Inherited Variables

Inherited Methods


Class Details

[line 44]
This an abstract widget to display lists.

The field name will be used in template file.

is as simple as this:

class MyList extens MySQLList {
  function MyList($attrs = array()) {
    $attrs['QUERY'] = "select nombre from padron";
    $this->MySQLList($attrs);
  }
}

and mylist.tpl

---------------------------
<!-- BEGIN item -->
{nombre}<br>
<!-- END item -->
---------------------------




Tags:

version:  $Revision: 1.11 $
author:  Nicolas D. Cesar <ncesar@lunix.com.ar>


[ Top ]


Class Methods


constructor MySQLList [line 50]

MySQLList MySQLList( [$attrs $attrs = array()], string 1)

{{{ function Constructor



Parameters:

string   1   QUERY a SQL query
$attrs   $attrs   Instance's attributes specified as a hash with the following keys: (in CAPS!)

[ Top ]

method innerDraw [line 54]

void innerDraw( )



Overrides BifWidget::innerDraw() (parent method not documented)

[ Top ]

method parseRow [line 77]

void parseRow( mixed $row)



Overridden in child classes as:

Noticia::parseRow()
MyTitleBoxLink::parseRow()

[ Top ]


Documentation generated on Wed, 10 Nov 2004 19:41:56 -0300 by phpDocumentor 1.2.3