1 | <?php |
||
11 | class TestUserDao extends UserBaseDao |
||
12 | { |
||
13 | /** |
||
14 | * Returns the list of users by alphabetical order. |
||
15 | * |
||
16 | * @return UserBean[] |
||
17 | */ |
||
18 | public function getUsersByAlphabeticalOrder() |
||
23 | /** |
||
24 | * Returns the list of users by alphabetical order. |
||
25 | * |
||
26 | * @return UserBean[] |
||
27 | */ |
||
28 | public function getUsersFromSqlByAlphabeticalOrder() |
||
33 | |||
34 | /** |
||
35 | * Returns the list of users by alphabetical order. |
||
36 | * |
||
37 | * @return UserBean[] |
||
38 | */ |
||
39 | public function getUsersByCountryOrder() |
||
44 | /** |
||
45 | * Returns the list of users by alphabetical order. |
||
46 | * |
||
47 | * @return UserBean[] |
||
48 | */ |
||
49 | public function getUsersFromSqlByCountryOrder() |
||
54 | |||
55 | /** |
||
56 | * Returns the list of users whose login starts with $login. |
||
57 | * |
||
58 | * @param string $login |
||
59 | * @param string $mode |
||
60 | * |
||
61 | * @return \TheCodingMachine\TDBM\ResultIterator|\TheCodingMachine\TDBM\Test\Dao\Bean\UserBean[]|\TheCodingMachine\TDBM\Test\Dao\ResultArray |
||
62 | */ |
||
63 | public function getUsersByLoginStartingWith($login = null, $mode = null) |
||
67 | |||
68 | /** |
||
69 | * Returns the user whose login is $login. |
||
70 | * |
||
71 | * @param string $login |
||
72 | * |
||
73 | * @return \TheCodingMachine\TDBM\Test\Dao\Bean\UserBean |
||
74 | */ |
||
75 | public function getUserByLogin($login) |
||
79 | |||
80 | public function getUsersByManagerId($managerId) |
||
84 | |||
85 | /** |
||
86 | * Triggers an error because table "contacts" does not exist. |
||
87 | * |
||
88 | * @return \TheCodingMachine\TDBM\ResultIterator|\TheCodingMachine\TDBM\Test\Dao\Bean\UserBean[]|\TheCodingMachine\TDBM\Test\Dao\Generated\ResultArray |
||
89 | */ |
||
90 | public function getUsersWrongTableName() |
||
94 | |||
95 | /** |
||
96 | * Returns a list of users, sorted by a table on an external column. |
||
97 | * |
||
98 | * @return \TheCodingMachine\TDBM\ResultIterator|\TheCodingMachine\TDBM\Test\Dao\Bean\UserBean[]|\TheCodingMachine\TDBM\Test\Dao\Generated\ResultArray |
||
99 | */ |
||
100 | public function getUsersByCountryName() |
||
104 | |||
105 | /** |
||
106 | * A test to sort by function. |
||
107 | * |
||
108 | * @return \TheCodingMachine\TDBM\ResultIterator|\TheCodingMachine\TDBM\Test\Dao\Bean\UserBean[]|\TheCodingMachine\TDBM\Test\Dao\Generated\ResultArray |
||
109 | */ |
||
110 | public function getUsersByReversedCountryName() |
||
114 | |||
115 | /** |
||
116 | * A test to check exceptions when providing expressions in ORDER BY clause. |
||
117 | * |
||
118 | * @return \TheCodingMachine\TDBM\ResultIterator|\TheCodingMachine\TDBM\Test\Dao\Bean\UserBean[]|\TheCodingMachine\TDBM\Test\Dao\Generated\ResultArray |
||
119 | */ |
||
120 | public function getUsersByInvalidOrderBy() |
||
124 | } |
||
125 |