Ejemplo n.º 1
0
 /**
  * Relation constructor.
  * @param $name
  * @param null $value
  * @param array $options
  */
 public function __construct($name, $value = null, $options = [])
 {
     parent::__construct($name, $value, $options);
     $this->modelManager = Artificer::modelManager();
     $this->modelSettings = $this->modelManager->current();
     $this->currentModel = $this->modelSettings->model;
 }
Ejemplo n.º 2
0
 /**
  * Field constructor.
  * @param $name
  * @param null $value
  * @param array $options
  */
 public function __construct($name, $value = null, $options = [])
 {
     parent::__construct($name, $value, $options);
     $this->widgets = $this->getInstalledWidgets();
 }