-
Quick start
-
The basics
-
Helper classes
- Benchmark Class
- Cache Class
- Captcha Class
- cURL Class
- Database Class
- Date Class
- Errors Class
- FileSystem Class
- FTP Class
- Images Class
- Language Class
- Logger Class
- Number Class
- PayPal Class
- PHPMailer Class
- Plugins Class
- RestClient Class
- Security Class
- Template Class
- Text Class
- URL Class
- XML Class
- ZIP Class
Helper classes
Why should you use the helper classes at all? Simply because you besets can do something with your time than to sit for hours before solutions for your Web project.
The webpackages framework offers many solutions to universal problems and makes your work much easier. Of course, you can also create your own classes (models or plugins), but it is recommended to use the help classes for finished solutions. These are integrated in the core of the framework and are adapted to the highest level of security and performance. At the same time, the webpackages help respond faster than plugins to inquiries and thus bring a significant boost to performance in your web project.
Helper classes can be loaded structured and separated. It does not have to be loaded at once all utility classes. You can decide for themselves which helper classes you want to be available. You can itself define which helper classes to be loaded Using the following simple example:
class welcome extends \package\core\load_functions
{
public function __construct()
{
parent::__construct(array(load_functions::$LOAD_TEMPLATE, load_functions::$LOAD_LANGUAGE));
}
}
Available following predefined functions in the load_functions available class.
$LOAD_BENCHMARKinvites thebenchmarkHelper class$LOAD_CACHEinvites thecacheHelper class$LOAD_CAPTCHAinvites thecaptchaHelper class$LOAD_CURLinvites thecurlHelper class$LOAD_DATABASEinvites thedatabaseHelper class (mit den Standard Zugangsdaten aus der constants.php)$LOAD_DATEinvites thedateHelper class$LOAD_ERRORinvites theerrorsHelper class$LOAD_FILE_SYSTEMinvites theFileSystemHelper class$LOAD_FTPinvites theftpHelper class$LOAD_IMAGESinvites theimagesHelper class$LOAD_LANGUAGEinvites thelanguageHelper class$LOAD_LOGGERinvites theloggerHelper class$LOAD_MAILERinvites thePHPMailerHelper class$LOAD_NUMBERinvites thenumberHelper class$LOAD_PAYPALinvites thepaypalHelper class$LOAD_PLUGINSinvites thepluginsHelper class$LOAD_TEMPLATEinvites thetemplateHelper class$LOAD_TEXTinvites thetextHelper class$LOAD_URLinvites theurlHelper class$LOAD_VERSIONinvites theversionHelper class$LOAD_XMLinvites thexmlHelper class$LOAD_ZIPinvites thezipHelper class
The structure of such a variable is as follows:
$LOAD_DATE =array(
'isStatic' => true, // If the helper class is a static class? => Yes true or false => no
'class' => 'Date', // What class would you initialize
'writeInAttribute' => null, // Which variable is the reference to be written (only public attributes)
'parameter' => array(), // The parameters to be transmitted to the helper class
'namespace' => '\package\core\\' // In what namespace is the class defined
);