Sgss_Collection_Table_Abstract 
Abstract class for table row associated between columns and values

Description

Implements:
Sgss_Collection_Table_Interface
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Collection/Table/Abstract.php (line 51)

Direct descendant

Sgss_Collection_Pdo_Table Represents a table in database

Class overview

Methods

int count ()
Sgss_Collection_TableRow_Interface getRow (mixed $row)

Returns the retrieved or prepared row object associated with the specified identifier in this table

boolean hasAllRows (array|object $t)

Determines this table has all the rows associated with the identifiers inside the specified object

boolean isRowEmpty ()

Determines whether this table contains no rows

boolean offsetExists (mixed $offset)
mixed offsetGet (mixed $offset)
mixed offsetSet (mixed $offset, mixed $value)
void offsetUnset (mixed $offset)
boolean removeAllRows (array|object $t)

Removes all the rows associated with the identifiers inside the specified object from this table

mixed __get (mixed $name)
boolean __isset (mixed $name)
void __unset (mixed $name)

Method detail

count

Uses:
Sgss_Collection_Table_Interface::getRowCount()
Related subject:
Countable::count()
Signature:
public int count ()


getRow

Returns the retrieved or prepared row object associated with the specified identifier in this table

Parameters:
  • mixed $row

    Identifier with which the row is associated

Returns:
Sgss_Collection_TableRow_Interface -- Row object associated with the identifier
Specified by:
Uses:
Sgss_Collection_Table_Interface::retrieveRow(), Sgss_Collection_Table_Interface::hasRow(), Sgss_Collection_Table_Interface::createRow()
Related subject:
Sgss_Collection_Table_Interface::getRow()
Signature:
public Sgss_Collection_TableRow_Interface getRow (mixed $row)


hasAllRows

Determines this table has all the rows associated with the identifiers inside the specified object

Parameters:
  • array|object $t

    Object containing identifiers with which the rows to determine are associated

Returns:
boolean -- True when this table contains all the rows associated with the identifiers in the object
Throws:
  • Sgss_Collection_Table_Exception

    When the specified object is untraversable

Specified by:
Uses:
Sgss_Collection_Table_Interface::hasRow()
Related subject:
Sgss_Collection_Table_Interface::hasAllRows()
Signature:
public boolean hasAllRows (array|object $t)


isRowEmpty

Determines whether this table contains no rows

Returns:
boolean -- True when this table contains no rows
Specified by:
Uses:
Sgss_Collection_Table_Interface::getRowCount()
Related subject:
Sgss_Collection_Table_Interface::isRowEmpty()
Signature:
public boolean isRowEmpty ()


offsetExists

Parameters:
  • mixed $offset
Uses:
Sgss_Collection_Table_Interface::hasRow()
Related subject:
ArrayAccess::offsetExists()
Signature:
public boolean offsetExists (mixed $offset)


offsetGet

Parameters:
  • mixed $offset
Uses:
Sgss_Collection_Table_Interface::getRow()
Related subject:
ArrayAccess::offsetGet()
Signature:
public mixed offsetGet (mixed $offset)


offsetSet

Parameters:
  • mixed $offset
  • mixed $value
Related subject:
ArrayAccess::offsetSet()
Signature:
public mixed offsetSet (mixed $offset, mixed $value)


offsetUnset

Parameters:
  • mixed $offset
Uses:
Sgss_Collection_Table_Interface::removeRow()
Related subject:
ArrayAccess::offsetUnset()
Signature:
public void offsetUnset (mixed $offset)


removeAllRows

Removes all the rows associated with the identifiers inside the specified object from this table

Parameters:
  • array|object $t

    Object containing identifiers with which the rows to be removed are associated

Returns:
boolean -- True when the operation changed this table
Throws:
  • Sgss_Collection_Table_Exception

    When the specified object is untraversable

Specified by:
Uses:
Sgss_Collection_Table_Interface::removeRow()
Related subject:
Sgss_Collection_Table_Interface::removeAllRows()
Signature:
public boolean removeAllRows (array|object $t)


__get

Parameters:
  • mixed $name
Specified by:
Uses:
Sgss_Collection_Table_Interface::getRow()
Related subject:
Sgss_Collection_Table_Interface::__get()
Signature:
public mixed __get (mixed $name)


__isset

Parameters:
  • mixed $name
Specified by:
Uses:
Sgss_Collection_Table_Interface::hasRow()
Related subject:
Sgss_Collection_Table_Interface::__isset()
Signature:
public boolean __isset (mixed $name)


__unset

Parameters:
  • mixed $name
Specified by:
Uses:
Sgss_Collection_Table_Interface::removeRow()
Related subject:
Sgss_Collection_Table_Interface::__unset()
Signature:
public void __unset (mixed $name)