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 the benchmark Helper class
  • $LOAD_CACHE invites the cache Helper class
  • $LOAD_CAPTCHA invites the captcha Helper class
  • $LOAD_CURL invites the curl Helper class
  • $LOAD_DATABASE invites the database Helper class (mit den Standard Zugangsdaten aus der constants.php)
  • $LOAD_DATE invites the date Helper class
  • $LOAD_ERROR invites the errors Helper class
  • $LOAD_FILE_SYSTEM invites the FileSystem Helper class
  • $LOAD_FTP invites the ftp Helper class
  • $LOAD_IMAGES invites the images Helper class
  • $LOAD_LANGUAGE invites the language Helper class
  • $LOAD_LOGGER invites the logger Helper class
  • $LOAD_MAILER invites the PHPMailer Helper class
  • $LOAD_NUMBER invites the number Helper class
  • $LOAD_PAYPAL invites the paypal Helper class
  • $LOAD_PLUGINS invites the plugins Helper class
  • $LOAD_TEMPLATE invites the template Helper class
  • $LOAD_TEXT invites the text Helper class
  • $LOAD_URL invites the url Helper class
  • $LOAD_VERSION invites the version Helper class
  • $LOAD_XML invites the xml Helper class
  • $LOAD_ZIP invites the zip 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
);