-
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_BENCHMARK
invites thebenchmark
Helper class$LOAD_CACHE
invites thecache
Helper class$LOAD_CAPTCHA
invites thecaptcha
Helper class$LOAD_CURL
invites thecurl
Helper class$LOAD_DATABASE
invites thedatabase
Helper class (mit den Standard Zugangsdaten aus der constants.php)$LOAD_DATE
invites thedate
Helper class$LOAD_ERROR
invites theerrors
Helper class$LOAD_FILE_SYSTEM
invites theFileSystem
Helper class$LOAD_FTP
invites theftp
Helper class$LOAD_IMAGES
invites theimages
Helper class$LOAD_LANGUAGE
invites thelanguage
Helper class$LOAD_LOGGER
invites thelogger
Helper class$LOAD_MAILER
invites thePHPMailer
Helper class$LOAD_NUMBER
invites thenumber
Helper class$LOAD_PAYPAL
invites thepaypal
Helper class$LOAD_PLUGINS
invites theplugins
Helper class$LOAD_TEMPLATE
invites thetemplate
Helper class$LOAD_TEXT
invites thetext
Helper class$LOAD_URL
invites theurl
Helper class$LOAD_VERSION
invites theversion
Helper class$LOAD_XML
invites thexml
Helper class$LOAD_ZIP
invites thezip
Helper 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
);