|
28 | 28 | //
|
29 | 29 | echo( '$test = new SMARTLoader();' . "\n" );
|
30 | 30 | $test = new SMARTLoader();
|
31 |
| -print_r( $test ); |
32 | 31 |
|
33 | 32 | echo( "\n====================================================================================\n\n" );
|
34 | 33 |
|
|
272 | 271 | echo( '$result = $test->ChildDatasetMotherOffset( "MOTHER" );' . "\n" );
|
273 | 272 | $result = $test->ChildDatasetMotherOffset( "MOTHER" );
|
274 | 273 | var_dump( $result );
|
| 274 | + |
| 275 | +echo( "\n====================================================================================\n\n" ); |
| 276 | + |
| 277 | +// |
| 278 | +// Load child dataset. |
| 279 | +// |
| 280 | +echo( '$result = $test->LoadChildDataset();' . "\n" ); |
| 281 | +$result = $test->LoadChildDataset(); |
| 282 | +var_dump( $result ); |
| 283 | + |
| 284 | +echo( "\n" ); |
| 285 | + |
| 286 | +// |
| 287 | +// Get child header. |
| 288 | +// |
| 289 | +echo( '$result = $test->LoadChildDatasetHeader();' . "\n" ); |
| 290 | +$result = $test->LoadChildDatasetHeader(); |
| 291 | +var_dump( $result ); |
| 292 | +if( $result & SMARTLoader::kSTATUS_DUPLICATE_COLUMNS ) |
| 293 | + print_r( $test->ChildDatasetDuplicateHeaderCoumns() ); |
| 294 | +print_r( $test->ChildDatasetHeaderCoumns() ); |
| 295 | + |
| 296 | +echo( "\n" ); |
| 297 | + |
| 298 | +// |
| 299 | +// Get child fields. |
| 300 | +// |
| 301 | +echo( '$result = $test->LoadChildDatasetFields();' . "\n" ); |
| 302 | +$result = $test->LoadChildDatasetFields(); |
| 303 | +var_dump( $result ); |
| 304 | +print_r( $test->ChildDatasetFields() ); |
| 305 | + |
| 306 | +echo( "\n====================================================================================\n\n" ); |
| 307 | + |
| 308 | +// |
| 309 | +// Load mother dataset. |
| 310 | +// |
| 311 | +echo( '$result = $test->LoadMotherDataset();' . "\n" ); |
| 312 | +$result = $test->LoadMotherDataset(); |
| 313 | +var_dump( $result ); |
| 314 | + |
| 315 | +echo( "\n" ); |
| 316 | + |
| 317 | +// |
| 318 | +// Get mother header. |
| 319 | +// |
| 320 | +echo( '$result = $test->LoadMotherDatasetHeader();' . "\n" ); |
| 321 | +$result = $test->LoadMotherDatasetHeader(); |
| 322 | +var_dump( $result ); |
| 323 | +if( $result & SMARTLoader::kSTATUS_DUPLICATE_COLUMNS ) |
| 324 | + print_r( $test->motherDatasetDuplicateHeaderCoumns() ); |
| 325 | +print_r( $test->motherDatasetHeaderCoumns() ); |
| 326 | + |
| 327 | +echo( "\n" ); |
| 328 | + |
| 329 | +// |
| 330 | +// Get mother fields. |
| 331 | +// |
| 332 | +echo( '$result = $test->LoadMotherDatasetFields();' . "\n" ); |
| 333 | +$result = $test->LoadMotherDatasetFields(); |
| 334 | +var_dump( $result ); |
| 335 | +print_r( $test->motherDatasetFields() ); |
| 336 | + |
| 337 | +echo( "\n====================================================================================\n\n" ); |
| 338 | + |
| 339 | +// |
| 340 | +// Load household dataset. |
| 341 | +// |
| 342 | +echo( '$result = $test->LoadHouseholdDataset();' . "\n" ); |
| 343 | +$result = $test->LoadHouseholdDataset(); |
| 344 | +var_dump( $result ); |
| 345 | + |
| 346 | +echo( "\n" ); |
| 347 | + |
| 348 | +// |
| 349 | +// Get household header. |
| 350 | +// |
| 351 | +echo( '$result = $test->LoadHouseholdDatasetHeader();' . "\n" ); |
| 352 | +$result = $test->LoadHouseholdDatasetHeader(); |
| 353 | +var_dump( $result ); |
| 354 | +if( $result & SMARTLoader::kSTATUS_DUPLICATE_COLUMNS ) |
| 355 | + print_r( $test->HouseholdDatasetDuplicateHeaderCoumns() ); |
| 356 | +print_r( $test->HouseholdDatasetHeaderCoumns() ); |
| 357 | + |
| 358 | +echo( "\n" ); |
| 359 | + |
| 360 | +// |
| 361 | +// Get household fields. |
| 362 | +// |
| 363 | +echo( '$result = $test->LoadHouseholdDatasetFields();' . "\n" ); |
| 364 | +$result = $test->LoadHouseholdDatasetFields(); |
| 365 | +var_dump( $result ); |
| 366 | +print_r( $test->HouseholdDatasetFields() ); |
| 367 | + |
275 | 368 | exit;
|
276 | 369 |
|
277 | 370 | echo( "\n====================================================================================\n\n" );
|
|
0 commit comments