/** * @param string $model Defaults to `users.noncelogin`. */ public function __construct($model = 'users.noncelogin') { parent::__construct($model); }
/** * The `$model` property defaults to "taxonomy.terms". * * @param string $model */ public function __construct($model = 'taxonomy.terms') { parent::__construct($model); }
/** * Default `$model` to "sites". * * @param string $model */ public function __construct($model = 'sites') { parent::__construct($model); }
/** * Creates a Node instance. * * The following properties are unset if they are empty, so that their getter may return * a fallback value: * * - {@link constructor}: Defaults to the model identifier. {@link get_constructor}. * - {@link language}: Defaults to the associated site's language. {@link get_language}. * - {@link slug}: Defaults to a normalize title. {@link get_slug}. */ public function __construct($model = 'nodes') { if (empty($this->constructor)) { unset($this->constructor); } if (empty($this->language)) { unset($this->language); } if (empty($this->slug)) { unset($this->slug); } parent::__construct($model); }
public function __construct($model = 'images.albums/photos') { parent::__construct($model); }
/** * Defaults model to "journal". */ public function __construct($model = 'journal') { parent::__construct($model); }
public function __construct($model = 'pages/contents') { parent::__construct($model); }
public function __construct($model = 'forms.blueprints/results') { if (isset($this->responses)) { $this->volatile_set_responses($this->responses); unset($this->responses); } parent::__construct($model); }
/** * If the `options` or `validation_options` magic properties are defined they are mapped * to their serialized conterparts and unset. This allows the developper to defined * options and validation options using unserialized data. * * @param string $model Default: "forms.blueprints/items". */ public function __construct($model = 'forms.blueprints/items') { if (isset($this->options)) { $this->volatile_set_options($this->options); } unset($this->options); if (isset($this->validation_options)) { $this->volatile_set_validation_options($this->validation_options); } unset($this->validation_options); parent::__construct($model); }
/** * Defaults model to "comments". */ public function __construct($model = 'comments') { parent::__construct($model); }
/** * Defaults `$model` to "users". * * Initializes the {@link $constructor} property with the model identifier if it is not * defined. * * @param string|\ICanBoogie\ActiveRecord\Model $model */ public function __construct($model = 'users') { parent::__construct($model); if (empty($this->constructor)) { $this->constructor = $this->model_id; } }