| Cts_Db_Table_Abstract | |
| Author | Jaybill McCarthy |
| License | http://communit.as/docs/license |
| See Also | |
| Constructors | |
| Cts_Db_Table_Abstract | Calls the parent’s constructor and instantiates a logger. |
| Instance Methods | |
| getCountByWhereClause | Gets a count of records using the supplied where clause. |
| update | Updates the table with the supplied data array. |
public function getCountByWhereClause( $whereclause = null )
Gets a count of records using the supplied where clause.
| whereclause (optional) | A string with your where clause in it. The word “where” is not needed. If you provide no where clause, a count of all rows will be returned. |
An integer representing the total number of records for that where clause.
public function update( array $data, $where )
Updates the table with the supplied data array. You must supply a where clause if you want to limit what gets updated, otherwise all rows will get the update.
| data | An array with a key-value pair for each column in the table. |
| where | A where clause string to limit the rows that get updated. If the where clause is empty, all rows will be updated with the data argument. |
TBD
Calls the parent’s constructor and instantiates a logger.
function Cts_Db_Table_Abstract( $config = null )
Gets a count of records using the supplied where clause.
public function getCountByWhereClause( $whereclause = null )
Updates the table with the supplied data array.
public function update( array $data, $where )