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')); }
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 . '_' : ''; }
public function __construct(array $attributes = []) { parent::__construct($attributes); $this->errors = new \Illuminate\Support\MessageBag(); $this->validator = \App::make('validator'); $this->manejaConcurrencia = true; }
/** * 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(); }
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); }
public function __construct($attributes = array()) { parent::__construct($attributes); if ($this->useSti()) { $this->setAttribute($this->stiClassField, get_class($this)); } }
/** * 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; }
/** * 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); }
/** * 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); }
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']; }
/** * 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(); }
public function __construct() { $this->title = ''; $this->description = ''; $this->has_dimension = false; $this->has_budget = false; $this->dimension = ''; $this->budget = ''; $this->type = 'draft'; parent::__construct(); }
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; }); } }
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); }
function __construct(array $attributes = []) { parent::__construct($attributes); }
public function __construct(array $attributes = array()) { $this->table = \Config::get('api-foundation::access_token_table'); parent::__construct($attributes); }
function __construct() { $this->table = Config::get("user-management::users_table"); parent::__construct(); }
public function __construct(array $attributes = array(), Validator $validator = null) { parent::__construct($attributes); $this->validator = $validator ?: \App::make('validator'); }
/** * @param array $attributes */ public function __construct(array $attributes = array()) { parent::__construct($attributes); // set the table name $this->table = Reader::getTableName(); }
public function __construct(array $attributes = array()) { $this->setRawAttributes($this->defaults, true); parent::__construct($attributes); }
public function __construct(array $attributes = []) { parent::__construct($attributes); $this->tableName = parent::getTable(); }
public function __construct($attributes = array()) { parent::__construct($attributes); }
public function __construct(array $attributes = array()) { $this->hasAttachedFile('att', ['styles' => self::styles()]); parent::__construct($attributes); }
public function __construct() { parent::__construct(); }
public function __construct(array $attributes = array()) { $this->hasAttachedFile('image', ['styles' => ['thumb' => '24x23']]); parent::__construct($attributes); }
/** * Constructor. * * @param array $attributes * Extends Eloquent constructor */ public function __construct($attributes = array()) { parent::__construct($attributes); $this->validationErrors = new MessageBag(); }
/** * Constructor */ public function __construct(array $attributes = array()) { $this->validationErrors = new \Illuminate\Support\MessageBag(); parent::__construct($attributes); }
/** * 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); }
public function __construct() { parent::__construct(); $this->index = Config::get('elasticsearch.annotationIndex'); }