PhpToolCase
Api Documentation Version 0.9.2
|
The PhpToolCase
library, provides helper functions for the components. These functions can be used as shortcuts to call components methods. Using the helpers functions is just like calling the respective methods, the only difference is that you will be able to type less making the code shorter and easear to read. All helper functions work only if in the same namespace of the library, with the exception of the PtcDebug class which is only loaded once.
To get started using the helper functions, you nedd to include the ptc-helpers.php
file. The best way to do this, is by using the PtcHandyMan::register( ) method:
The PtcHandyMan will include the library helpers if the file ptc-helpers.php
is found in the same folder.
The following sections will exaplain all library helpers and the equivalent components that are beeing called.
These are all library helpers and the equivalent library methods for the PtcDebug component:
These are all library helpers and the equivalent library methods for the PtcHandyMan component:
These are all library helpers and the equivalent library methods for the PtcEvent component: