@@ 121-127 (lines=7) @@ | ||
118 | * @param int $id ID of group to be enumerated. |
|
119 | * @return CRecordset Recordset with list of accounts. |
|
120 | */ |
|
121 | function group_amongs ($id) |
|
122 | { |
|
123 | debug_write_log(DEBUG_TRACE, '[group_amongs]'); |
|
124 | debug_write_log(DEBUG_DUMP, '[group_amongs] $id = ' . $id); |
|
125 | ||
126 | return dal_query('groups/mamongs.sql', $id); |
|
127 | } |
|
128 | ||
129 | /** |
|
130 | * Returns {@link CRecordset DAL recordset} which contains all non-members of specified group. |
@@ 2190-2196 (lines=7) @@ | ||
2187 | * @param int $id Record ID. |
|
2188 | * @return CRecordset Recordset with list of parent records. |
|
2189 | */ |
|
2190 | function parents_list ($id) |
|
2191 | { |
|
2192 | debug_write_log(DEBUG_TRACE, '[parents_list]'); |
|
2193 | debug_write_log(DEBUG_DUMP, '[parents_list] $id = ' . $id); |
|
2194 | ||
2195 | return dal_query('depends/parents.sql', $id); |
|
2196 | } |
|
2197 | ||
2198 | /** |
|
2199 | * Returns {@link CRecordset DAL recordset} which contains all subrecords of specified record, sorted by ID. |
|
@@ 2204-2210 (lines=7) @@ | ||
2201 | * @param int $id Record ID. |
|
2202 | * @return CRecordset Recordset with list of subrecords. |
|
2203 | */ |
|
2204 | function subrecords_list ($id) |
|
2205 | { |
|
2206 | debug_write_log(DEBUG_TRACE, '[subrecords_list]'); |
|
2207 | debug_write_log(DEBUG_DUMP, '[subrecords_list] $id = ' . $id); |
|
2208 | ||
2209 | return dal_query('depends/list.sql', $id); |
|
2210 | } |
|
2211 | ||
2212 | /** |
|
2213 | * Validates subrecord information before creation. |