Пример #1
0
 public function __construct(array $attributes = array())
 {
     $url = '/system/:attachment/security_tips/:id_partition/:style/:filename';
     $this->hasAttachedFile('preview', ['styles' => ['medium' => ['dimensions' => '214x214#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]], 'small' => ['dimensions' => '100x100#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]]], 'url' => $url]);
     $this->attachImage('photo_preview_for_main', '400x250#', $url);
     parent::__construct($attributes);
 }
Пример #2
0
 /**
  * Creates a new instance of the model
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     if (!static::$app) {
         static::$app = app();
     }
 }
Пример #3
0
 public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('documentation');
     $this->hasAttachedFile('instruction');
     $this->hasAttachedFile('certificate');
     parent::__construct($attributes);
 }
Пример #4
0
 /**
  * Create a new ConfideUser instance.
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     if (!static::$app) {
         static::$app = app();
     }
     $this->table = static::$app['config']->get('auth.table');
 }
Пример #5
0
 /**
  * Adding purge filters
  *
  * @param array $attributes
  */
 function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->purgeFilters[] = function ($key) {
         $purge = array('repassword', 'agree');
         return !in_array($key, $purge);
     };
 }
Пример #6
0
 /**
  * Creates a new instance of the model
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     if (!static::$app) {
         static::$app = app();
     }
     $this->table = static::$app['config']->get('workflow::resourcenode_table');
 }
Пример #7
0
 public function __construct(array $attributes = array())
 {
     $url = '/system/:attachment/works/:id_partition/:style/:filename';
     $this->hasAttachedFile('preview', ['styles' => ['medium' => ['dimensions' => '214x214#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]], 'small' => ['dimensions' => '100x100#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]]], 'url' => $url]);
     // мб добавить аргумент ['medium' => '416x214#', 'small' => '100x100#'] и вынести в trait
     $this->attachImage('photo_preview_for_main', '400x250#', $url);
     $this->attachImage('big_preview', '416x214#', $url);
     $this->attachImage('main_photo', '810x457#', $url);
     $this->attachImage('second_photo', '400x214#', $url);
     $this->attachImage('third_photo', '400x214#', $url);
     $this->attachImage('client_photo', '214x214#', $url);
     parent::__construct($attributes);
 }
Пример #8
0
 /**
  * Creates a new instance of the model
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->table = Config::get('workflow::resourcelog_table');
 }
Пример #9
0
 public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('photo', ['styles' => ['medium' => '300x300#', 'thumb' => '80x80#'], 'default_url' => '/system/missing.jpg', 'keep_old_files' => true]);
     parent::__construct($attributes);
 }
Пример #10
0
 public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('picture', ['styles' => ['medium' => '300x300', 'thumb' => '100x100'], 'default_url' => 'missing-material.jpg']);
     parent::__construct($attributes);
 }
Пример #11
0
 public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('img', ['styles' => ['medium' => ['dimensions' => '214x214#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]], 'small' => ['dimensions' => '100x100#', 'auto-orient' => true, 'convert_options' => ['quality' => 100]]], 'url' => '/system/:attachment/:model/:id_partition/:style/:filename']);
     parent::__construct($attributes);
 }
Пример #12
0
 /**
  * Create a new Eloquent model instance.
  *
  * @param  array  $attributes
  * @return void
  */
 public function __construct(array $attributes = array())
 {
     $this->{$this->getKeyName()} = (string) $this->generateNewId();
     parent::__construct($attributes);
 }
 /**
  * Creates a new instance of the model
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->table = Config::get('entrust::permissions_table');
 }