|
Revision 2, 0.5 kB
(checked in by nperriault, 8 months ago)
|
First commit of the extracted code from production, I hope no passwd has been forgotten :-)
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
class ApplicationDeveloperPeer extends BaseApplicationDeveloperPeer |
|---|
| 8 |
{ |
|---|
| 9 |
|
|---|
| 10 |
public static function retrieveForUser($user, Criteria $c = null) |
|---|
| 11 |
{ |
|---|
| 12 |
if (!$c instanceof Criteria) |
|---|
| 13 |
{ |
|---|
| 14 |
$c = new Criteria(); |
|---|
| 15 |
} |
|---|
| 16 |
$c->addJoin(self::APPLICATION_ID, ApplicationPeer::ID); |
|---|
| 17 |
$c->add(self::DEVELOPER_ID, $user->getId()); |
|---|
| 18 |
$c->addDescendingOrderByColumn(self::STARTED_AT); |
|---|
| 19 |
return self::doSelectJoinAll($c); |
|---|
| 20 |
} |
|---|
| 21 |
|
|---|
| 22 |
} |
|---|
| 23 |
|
|---|