> Take for instance Auth.php, in there is a line that says
> $PACKAGE='binarycloud.core'; does this mean that this file is part of
> binarycloud.core, or that it should include all other stuff that's in
> binarycloud.core?
Ah,
this is used by the makefile systme to make the build tree.
in the source tree, auth is in:
binarycloud/base/core/Auth.php
in the build tree, it's in:
binarycloud/core/Auth.php
and you import auth using
import('binarycloud.core.Auth');
> Also, later on in Auth.php it reads 'include_once
> DBOBJECTS."bc_logged_in.inc";' - and I imagine 'bc_logged_in.inc' is a file,
> but why is that DBOJECTS. in front of it?
Auth is not done! :)
That isn't a functional file, it won't do a thing right now.
> Then even later, in Init.php, there is a line that reads
> "import('binarycloud.core.Lang');" Can anyone explain this structure to me?
> I'm guessing that this references a package (binarycloud.core), and then a
> class within that package? (Lang)
yes, import is just like java:
in the build tree,
binarycloud/core/Lang.php exists, and that does work :) It sets the language
based on client settings and app preferences.
best,
_alex
--
alex black, ceo
en...@tu...
the turing studio, inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
|