Version 7

SamplePackageDissection

A Breakdown of the files that make up the SamplePackage

Created by: WaterDragon, Last modification: 13 Jun 2006 (13:33 UTC) by WaterDragon

A Breakdown of the files included in the SamplePackage


This is an attempt to list and explain all of the files in the SamplePackage put together by spiderr. Any corrections you make or additions you have to this document are warmly appreciated. After all, that is what a wiki is for, right?

These files are being tackled in an order that seems a bit odd - Start where bitweaver starts - I.E. the install. After that - index.php and bit_setup_inc.php. Then a list of everything in a directory one at a time.

sample/admin/schema_inc.php


sample/admin/schema_inc.php is the file responsible for integrating SamplePackage into the InstallPackage and thus into bitweaver. When you go to the kernal/admin/index.php page and click on Packages this file gets automatically loaded in order to display the information about your package as provided in the call to registerPackageInfo. When you click on "Activate bitweaver packages" the various things you registered are actually stored into the database for use by your package.

At the top of the file is the array of tables that the package will use to do its job. The format for the schema is not straight SQL but rather is ADOdb style DataDict style code as documented in the
ADOdb Data Dictionary Documentation

The next bit of code tells bitweaver that this package can be used as
a homepage:

<?php
$gBitInstaller
->makePackageHomeableSAMPLE_PKG_NAME );
?>
This should only be called if it is appropriate for your package, i.e. it is content and not some kind of plugin package.

The rest of the code registers the tables, indexes, sequences, pacakge information, preferences and permissions for the package. This is all relatively straight forward and is largely self explanatory.

sample/admin/admin_sample_inc.php


This file is the interface for administrating the package itself. It is used when you go to kernel/admin/index.php and click on Sample Settings. This page creates the options page that you see.

sample/mkpackage.sh


This script can be used to rename the sample package in order to make it easier to use it as a base for new packages. See SamplePackage for more information on using this to repackage the sample package as your own.

Page History
Date/CommentUserIPVersion
25 Nov 2008 (08:16 UTC)
xing62.47.229.16433
Current • Source
xing62.47.229.16432
View • Compare • Difference • Source
xing62.47.229.16431
View • Compare • Difference • Source
xing62.47.229.16430
View • Compare • Difference • Source
xing62.47.229.16429
View • Compare • Difference • Source
hiran85.233.40.19228
View • Compare • Difference • Source
hiran85.233.40.19226
View • Compare • Difference • Source
hiran85.233.40.19224
View • Compare • Difference • Source
hiran85.233.40.19222
View • Compare • Difference • Source
hiran85.233.40.19221
View • Compare • Difference • Source
hiran85.233.40.19220
View • Compare • Difference • Source
hiran85.233.40.19218
View • Compare • Difference • Source
hiran85.233.40.19217
View • Compare • Difference • Source
hiran85.233.40.19215
View • Compare • Difference • Source
hiran85.233.40.19214
View • Compare • Difference • Source
hiran85.233.40.19213
View • Compare • Difference • Source
WaterDragon66.93.180.15112
View • Compare • Difference • Source
WaterDragon66.93.180.15111
View • Compare • Difference • Source
WaterDragon66.93.180.15110
View • Compare • Difference • Source
WaterDragon66.93.180.1519
View • Compare • Difference • Source
WaterDragon85.144.104.2477
View • Compare • Difference • Source
WaterDragon85.144.104.2476
View • Compare • Difference • Source
xing194.152.164.455
View • Compare • Difference • Source
Sean Lee71.241.129.1744
View • Compare • Difference • Source