| @@ 215-228 (lines=14) @@ | ||
| 212 | * @param int $ui_parent_id |
|
| 213 | * @param array $set |
|
| 214 | */ |
|
| 215 | public static function db_planet_set_by_parent($ui_parent_id, $set) { |
|
| 216 | if (!idval($ui_parent_id) || empty($set)) { |
|
| 217 | return; |
|
| 218 | } |
|
| 219 | ||
| 220 | classSupernova::$gc->cacheOperator->db_upd_record_list( |
|
| 221 | LOC_PLANET, |
|
| 222 | $set, |
|
| 223 | array(), |
|
| 224 | array( |
|
| 225 | 'parent_planet' => $ui_parent_id, |
|
| 226 | ) |
|
| 227 | ); |
|
| 228 | } |
|
| 229 | ||
| 230 | /** |
|
| 231 | * @param $ui_owner_id |
|
| @@ 234-247 (lines=14) @@ | ||
| 231 | * @param $ui_owner_id |
|
| 232 | * @param array $set |
|
| 233 | */ |
|
| 234 | public static function db_planet_set_by_owner($ui_owner_id, $set) { |
|
| 235 | if (!idval($ui_owner_id) || empty($set)) { |
|
| 236 | return; |
|
| 237 | } |
|
| 238 | ||
| 239 | classSupernova::$gc->cacheOperator->db_upd_record_list( |
|
| 240 | LOC_PLANET, |
|
| 241 | $set, |
|
| 242 | array(), |
|
| 243 | array( |
|
| 244 | 'id_owner' => $ui_owner_id |
|
| 245 | ) |
|
| 246 | ); |
|
| 247 | } |
|
| 248 | ||
| 249 | ||
| 250 | public static function db_planet_delete_by_id($planet_id) { |
|