Prev | Current Page 554 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

If you wish to
provide alternative names for these variables for access outside of the class, then you could always use
properties. The next two variables represent the table name and id fields respectively. The table id field
exists in an array in case you want to specify more than one field as the id for that table. You must
provide both of these variables before specifying the Manager class variable. Failure to provide them
defaults the table name to the name of the class and the id field to the value id .
In the AuthorApp class, the Manager class is first passed an open connection object. It matters little
which database this is for, as long as the database wrapper is SPOD ready. The actual processes
performed on the database are relative to most, so no checking is required. From there, the Manager is
initialized. This prepares various object containers ready for population from the database. You won ??™ t
access these containers directly, but they are still required by the Manager class in order to, well, manage.


Pages:
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566