Esempio n. 1
0
 /**
  * @param string $name
  * @param string $value
  * @param array $comments
  */
 public function __construct($name, $value, $comments = array())
 {
     parent::__construct($comments);
     $this->name = $name;
     $this->value = $value;
 }
Esempio n. 2
0
 /**
  * @param string $dir
  * @param array $comments
  */
 public function __construct($dir, $comments = array())
 {
     parent::__construct($comments);
     $this->dir = $dir;
 }
Esempio n. 3
0
 public function getClass()
 {
     if (empty(self::$dones)) {
         require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'AbstractLayer.php';
     }
     AbstractLayer::$pdo = $this;
     $class = 'Layer' . strtoupper($this->type);
     if (isset(self::$dones[$class])) {
         return $class;
     }
     $file = dirname(__FILE__) . DIRECTORY_SEPARATOR . $class . '.php';
     if (!file_exists($file)) {
         self::getException('Layer not implemented : ' . $this->type);
     }
     require_once $file;
     self::$dones[$class] = 1;
     return $class;
 }
Esempio n. 4
0
 /**
  * @param array $sources
  * @param string $destination
  * @param array $comments
  */
 public function __construct($sources, $destination, $comments = array())
 {
     parent::__construct($comments);
     $this->sources = (array) $sources;
     $this->destination = $destination;
 }
Esempio n. 5
0
 /**
  * @param string $command
  * @param array $args
  * @param array $comments
  */
 public function __construct($command, $args = array(), $comments = array())
 {
     parent::__construct($comments);
     $this->command = $command;
     $this->args = $args;
 }
Esempio n. 6
0
 /**
  * @param array $packages
  * @param array $comments
  */
 public function __construct($packages, $comments = array())
 {
     parent::__construct($comments);
     $this->packages = $packages;
 }
Esempio n. 7
0
 /**
  * @param int|array $ports
  * @param array $comments
  */
 public function __construct($ports, $comments = array())
 {
     parent::__construct($comments);
     $this->ports = (array) $ports;
 }
Esempio n. 8
0
 /**
  * @param AbstractLayer $layer
  * @param array $comments
  */
 public function __construct(AbstractLayer $layer, $comments = array())
 {
     parent::__construct($comments);
     $this->layer = $layer;
 }
Esempio n. 9
0
 /**
  * @param string $user
  * @param array $comments
  */
 public function __construct($user, $comments = array())
 {
     parent::__construct($comments);
     $this->user = $user;
 }
Esempio n. 10
0
 /**
  * @param string|array $commands
  * @param array $comments
  */
 public function __construct($commands, $comments = array())
 {
     parent::__construct($comments);
     $this->commands = (array) $commands;
 }
Esempio n. 11
0
 /**
  * @param string|array $volumes
  * @param array $comments
  */
 public function __construct($volumes, $comments = array())
 {
     parent::__construct($comments);
     $this->volumes = (array) $volumes;
 }