Exemple #1
0
 /**
  *
  * @param <type> $file => $_FILES[i]
  */
 public function __construct($file, $inline = true)
 {
     parent::__construct();
     if (is_array($file)) {
         $this->name = $file['name'];
         $this->type = $file['type'];
         $this->tmpName = $file['tmp_name'];
         $this->error = $file['error'];
         $this->size = $file['size'];
         $this->getValue();
         $this->setPath($this->tmpName, $inline);
     } else {
         $this->setValue($file);
     }
 }
Exemple #2
0
 public function __construct($datetime = NULL, $format = '')
 {
     parent::__construct();
     $this->separator = Manager::getOptions('separatorDate');
     $this->format = $format ?: Manager::getOptions('formatDate');
     $this->datetime = MKrono::getDateTime($datetime, $this->format);
 }