예제 #1
0
파일: Text.php 프로젝트: guratr/cruddy
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['rows' => $this->get('rows', 3)] + parent::toArray();
 }
예제 #2
0
파일: File.php 프로젝트: guratr/cruddy
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['multiple' => $this->many, 'accepts' => $this->get('accepts', $this->defaultAccepts()), 'unique' => true] + parent::toArray();
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['multiple' => $this->isMultiple(), 'reference' => $this->reference->getId()] + parent::toArray();
 }
예제 #4
0
파일: Slug.php 프로젝트: guratr/cruddy
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['chars' => $this->chars, 'field' => $this->field, 'separator' => $this->separator] + parent::toArray();
 }
예제 #5
0
파일: BaseInput.php 프로젝트: guratr/cruddy
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['append' => Helpers::tryTranslate($this->get('append')), 'prepend' => Helpers::tryTranslate($this->get('prepend'))] + parent::toArray();
 }
예제 #6
0
파일: Code.php 프로젝트: cruddy/ace
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     return ['height' => $this->get('height', config('ace.height', 250)), 'theme' => $this->get('theme', config('ace.theme', 'chrome')), 'mode' => $this->get('mode'), 'wordwrap' => $this->get('wordwrap', config('ace.wordwrap', true))] + parent::toArray();
 }