[ Index ]
 

Code source de PHPonTrax 2.6.6-svn

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/test/mockActiveRecord/ -> active_record.php (sommaire)

File for mock ActiveRecord class This file has the same name as the file holding the {@link ActiveRecord} class.  To use the mock ActiveRecord, put this file in the PHP include path ahead of the Trax library, so that any class which requires active_record.php will load this version.

Author: Walt Haas <haas@xmission.com>
Copyright: (c) Walter O. Haas 2006
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id: active_record.php 199 2006-05-05 01:52:43Z haas $
Poids: 78 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ActiveRecord:: (2 méthodes):
  expect_query()
  send()


Classe: ActiveRecord  - X-Ref

Mock ActiveRecord class for testing

expect_query($expected, $result)   X-Ref
Set expected query and return

This is a test routine that does not exist in the real
ActiveRecord.
param: string $expected Expected query
param: string $result Result to be returned when expected

send($column)   X-Ref
Get contents of one column of record selected by id and table

When called, {@link $id} identifies one record in the table
identified by {@link $table}.  Fetch from the database the
contents of column $column of this record.
param: string Name of column to retrieve
return: string Column contents



Généré le : Sun Feb 25 20:04:38 2007 par Balluche grâce à PHPXref 0.7