hajtest | ||||
![]() |
||||
|
||||
![]() |
Coverage | ||||||||||||
Classes | Functions / Methods | Lines | ||||||||||
Total |
|
0.00% | 0 / 1 |
|
0.00% | 0 / 3 |
|
0.00% | 0 / 19 | |||
Instructors |
|
0.00% | 0 / 1 |
|
0.00% | 0 / 3 |
|
0.00% | 0 / 19 | |||
public static function findAll() |
|
0.00% | 0 / 1 |
|
0.00% | 0 / 5 | ||||||
public static function findByIdent($ident) |
|
0.00% | 0 / 1 |
|
0.00% | 0 / 5 | ||||||
public static function findByIdentJoinCategoriesWorkshops($ident) |
|
0.00% | 0 / 1 |
|
0.00% | 0 / 8 |
1 : <?php 2 : 3 : /** 4 : * Instructors 5 : * 6 : * This class has been auto-generated by the Doctrine ORM Framework 7 : * 8 : * @package ##PACKAGE## 9 : * @subpackage ##SUBPACKAGE## 10 : * @author ##NAME## <##EMAIL##> 11 : * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ 12 : */ 13 0 : class Instructors extends BaseInstructors { 14 : 15 : // public static function findByIdent($ident) 16 : // { 17 : // return Doctrine_Core::getTable('Instructors')->findOneBy('ident', $ident); 18 : // } 19 : public static function findAll() { 20 0 : return Doctrine_Query::create() 21 0 : ->select('i.*') 22 0 : ->from('Instructors i') 23 0 : ->orderBy('i.first_name') 24 0 : ->execute(); 25 : } 26 : 27 : public static function findByIdent($ident) { 28 0 : return Doctrine_Query::create() 29 0 : ->select('i.*') 30 0 : ->from('Instructors i') 31 0 : ->where('i.ident = ?', $ident) 32 0 : ->execute(); 33 : } 34 : 35 : public static function findByIdentJoinCategoriesWorkshops($ident) { 36 0 : $today = date('Y-m-d'); 37 0 : return Doctrine_Query::create() 38 0 : ->select('i.*, c.*, w.*') 39 0 : ->from('Instructors i') 40 0 : ->leftJoin('i.Categories c') 41 0 : ->leftJoin("c.Workshops w ON c.id = w.category_id AND w.start_date > ?", $today) 42 0 : ->where('i.ident = ?', $ident) 43 0 : ->execute(); 44 : } 45 : |
![]() |
Generated by PHPUnit 3.4.15 and Xdebug 2.1.0rc1 using PHP 5.3.1 at Mon Jan 17 15:42:18 PST 2011. |