Ejemplo n.º 1
0
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->primaryKey = Config::get('wordpress-auth-laravel::auth.id');
     $this->table = Config::get('wordpress-auth-laravel::auth.table');
     $this->hidden = array(Config::get('wordpress-auth-laravel::auth.password'));
 }
Ejemplo n.º 2
0
 public function __construct(array $attributes = array())
 {
     // $db_fields_to_import = DaisyconHelper::db_fields_to_import();
     // $custom_db_fields_to_import = Config::get('daisycon.custom_db_fields_to_import');
     $this->fillable(array_merge(DaisyconHelper::getDatabaseFields(), array('program_id', 'feed_id', 'custom_categorie')));
     parent::__construct($attributes);
 }
 /**
  * Construct
  * 
  * @param array   $attributes
  * @param boolean $exists
  */
 public function __construct($attributes = array(), $exists = false)
 {
     parent::__construct($attributes, $exists);
     // Set the prefix
     $prefix = \Config::get('verify::verify.prefix');
     $this->prefix = $prefix ? $prefix . '_' : '';
 }
Ejemplo n.º 4
0
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->errors = new \Illuminate\Support\MessageBag();
     $this->validator = \App::make('validator');
     $this->manejaConcurrencia = true;
 }
Ejemplo n.º 5
0
 /**
  * Create a new Eloquent model instance.
  *
  * @param  array  $attributes
  * @return void
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     // Set the prefix
     $this->prefix = \Config::get('leback-auth::prefix', 'test');
     $this->table = $this->prefix . $this->getTable();
 }
Ejemplo n.º 6
0
 public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('avatar', ['styles' => ['medium' => '300x300', 'thumbCrop' => '120x120#']]);
     $this->hasAttachedFile('cover', ['styles' => ['standard' => '1200x250', 'standardCrop' => '1200x250#']]);
     $this->hasAttachedFile('presentation_cover', ['styles' => ['standard' => '1200']]);
     parent::__construct($attributes);
 }
Ejemplo n.º 7
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     if ($this->useSti()) {
         $this->setAttribute($this->stiClassField, get_class($this));
     }
 }
Ejemplo n.º 8
0
 /**
  * Prefixes any tables that need it
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     static::$dbprefix = \Config::get('empower::dbprefix');
     // Change any unique:table_name or exists:table_name to prefixed table names
     static::$rules = preg_replace(array('/exists:(?:' . static::$dbprefix . '|)/', '/unique:(?:' . static::$dbprefix . '|)/'), array('exists:' . static::$dbprefix, 'unique:' . static::$dbprefix), static::$rules);
     $this->table = static::$dbprefix . $this->table;
 }
Ejemplo n.º 9
0
 /**
  * Create a new Eloquent model instance.
  *
  * @param array $attributes
  * @return void
  */
 public function __construct(array $attributes = array())
 {
     /**
      * The database table used by the model.
      */
     $this->table = \Config::get('gponster/laravel-facebook-sdk::profile.table');
     parent::__construct($attributes);
 }
Ejemplo n.º 10
0
 /**
  * Create a new Eloquent model instance, ensuring that any auditing
  * columns are guarded.
  *
  * @param  array  $attributes
  * @return void
  */
 public function __construct(array $attributes = array())
 {
     // if we're using the auditing trait, guard the audit columns
     $reflection = new \ReflectionClass($this);
     if (array_key_exists('BishopB\\Forum\\AuditingTrait', $reflection->getTraits())) {
         $this->guarded = $this->guarded + $this->getAuditors();
     }
     parent::__construct($attributes);
 }
Ejemplo n.º 11
0
 public function __construct()
 {
     parent::__construct();
     $config = Config::get('app.txtMsg');
     $this->sendUrl = $config['url'];
     $this->apiKey = $config['key'];
     $this->apiPass = $config['pass'];
     $this->apiId = $config['id'];
 }
Ejemplo n.º 12
0
 /**
  * AbstractTranslatableModel constructor.
  * @param array $attributes
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     if (empty($this->translationModel) || empty($this->translationForeignKey) || empty($this->translatedAttributes)) {
         throw new \Exception('This model requires these attributes must be set to work normally :
         "translationModel", "translationForeignKey", "translatedAttributes"');
         //see comments below for sample
     }
     $this->initListify();
 }
Ejemplo n.º 13
0
 public function __construct()
 {
     $this->title = '';
     $this->description = '';
     $this->has_dimension = false;
     $this->has_budget = false;
     $this->dimension = '';
     $this->budget = '';
     $this->type = 'draft';
     parent::__construct();
 }
Ejemplo n.º 14
0
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     // Create class methods on the fly.
     foreach (static::$states as $state) {
         $method = camel_case("is {$state}");
         $this->addMethod($method, function () use($state) {
             return $this->state == $state;
         });
     }
 }
Ejemplo n.º 15
0
 public function __construct(array $attributes = [], $options = [])
 {
     foreach ($options as $key => $value) {
         if ($value) {
             $propertyName = 'fake' . studly_case($key);
             self::${$propertyName} = $value;
         }
     }
     $this->table = self::$fakeTable;
     $this->connection = self::$fakeConnection;
     $this->primaryKey = self::$fakePrimaryKey;
     parent::__construct($attributes);
 }
Ejemplo n.º 16
0
 function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
 }
Ejemplo n.º 17
0
 public function __construct(array $attributes = array())
 {
     $this->table = \Config::get('api-foundation::access_token_table');
     parent::__construct($attributes);
 }
Ejemplo n.º 18
0
 function __construct()
 {
     $this->table = Config::get("user-management::users_table");
     parent::__construct();
 }
Ejemplo n.º 19
0
 public function __construct(array $attributes = array(), Validator $validator = null)
 {
     parent::__construct($attributes);
     $this->validator = $validator ?: \App::make('validator');
 }
Ejemplo n.º 20
0
 /**
  * @param array $attributes
  */
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     // set the table name
     $this->table = Reader::getTableName();
 }
Ejemplo n.º 21
0
 public function __construct(array $attributes = array())
 {
     $this->setRawAttributes($this->defaults, true);
     parent::__construct($attributes);
 }
Ejemplo n.º 22
0
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->tableName = parent::getTable();
 }
Ejemplo n.º 23
0
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
 }
Ejemplo n.º 24
0
 public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('att', ['styles' => self::styles()]);
     parent::__construct($attributes);
 }
Ejemplo n.º 25
0
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 26
0
 public function __construct(array $attributes = array())
 {
     $this->hasAttachedFile('image', ['styles' => ['thumb' => '24x23']]);
     parent::__construct($attributes);
 }
Ejemplo n.º 27
0
 /**
  *	Constructor.
  *
  *	@param array $attributes
  *	Extends Eloquent constructor
  */
 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->validationErrors = new MessageBag();
 }
Ejemplo n.º 28
0
 /**
  * Constructor
  */
 public function __construct(array $attributes = array())
 {
     $this->validationErrors = new \Illuminate\Support\MessageBag();
     parent::__construct($attributes);
 }
Ejemplo n.º 29
0
 /**
  * Create new Aware instance
  *
  * @param array $attributes
  * @return void
  */
 public function __construct($attributes = array(), $exists = false)
 {
     // initialize empty messages object
     $this->errors = new Messages();
     parent::__construct($attributes, $exists);
 }
Ejemplo n.º 30
0
 public function __construct()
 {
     parent::__construct();
     $this->index = Config::get('elasticsearch.annotationIndex');
 }