__construct() публичный Метод

Constructor.
public __construct ( Components_Config $config, Components_Component_Factory $factory )
$config Components_Config The configuration for the current job.
$factory Components_Component_Factory Generator for additional helpers.
Пример #1
0
 /**
  * Constructor.
  *
  * @param string                  $name      Component name.
  * @param string                  $stability Component stability.
  * @param string                  $channel   Component channel.
  * @param Horde_Pear_Remote       $remote    Remote channel handler.
  * @param Horde_Http_Client       $client    The HTTP client for remote
  *                                           access.
  * @param Components_Config       $config    The configuration for the
  *                                           current job.
  * @param Components_Component_Factory $factory Generator for additional
  *                                              helpers.
  */
 public function __construct($name, $stability, $channel, Horde_Pear_Remote $remote, Horde_Http_Client $client, Components_Config $config, Components_Component_Factory $factory)
 {
     $this->_name = $name;
     $this->_stability = $stability;
     $this->_channel = $channel;
     $this->_remote = $remote;
     $this->_client = $client;
     parent::__construct($config, $factory);
 }
Пример #2
0
 /**
  * Constructor.
  *
  * @param string                  $directory Path to the source directory.
  * @param boolean                 $shift     Did identification of the
  *                                           component consume an argument?
  * @param Components_Config       $config    The configuration for the
  *                                           current job.
  * @param Components_Component_Factory $factory Generator for additional
  *                                              helpers.
  */
 public function __construct($archive, Components_Config $config, Components_Component_Factory $factory)
 {
     $this->_archive = $archive;
     parent::__construct($config, $factory);
 }
Пример #3
0
 /**
  * Constructor.
  *
  * @param string                  $directory Path to the source directory.
  * @param boolean                 $shift     Did identification of the
  *                                           component consume an argument?
  * @param Components_Config       $config    The configuration for the
  *                                           current job.
  * @param Components_Component_Factory $factory Generator for additional
  *                                              helpers.
  */
 public function __construct($directory, Components_Config $config, Components_Component_Factory $factory)
 {
     $this->_directory = realpath($directory);
     parent::__construct($config, $factory);
 }