Пример #1
0
 /**
  * Create a array, for Input::create().
  * @return array
  */
 public function toInputArray()
 {
     return ['object' => $this->blueprint->getClass(), 'name' => $this->name, 'label' => $this->label, 'priority' => $this->priority, 'description' => $this->description, 'type' => $this->input, 'options' => $this->options ? json_encode($this->options) : "", 'required' => $this->required ? 1 : 0, 'unique' => $this->unique ? 1 : 0, 'in_table' => $this->in_table ? 1 : 0, 'value' => $this->value ?: "", 'active' => 1];
 }