當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TextField::input方法代碼示例

本文整理匯總了PHP中TextField::input方法的典型用法代碼示例。如果您正苦於以下問題:PHP TextField::input方法的具體用法?PHP TextField::input怎麽用?PHP TextField::input使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TextField的用法示例。


在下文中一共展示了TextField::input方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: input

 public function input()
 {
     # Use `BaseField`'s setup
     $input = parent::input();
     # Provide a hook for the Panel's form initialization. This is a jQuery method, defined in assets/js/place.js
     $input->data('field', 'mapField');
     return $input;
 }
開發者ID:aguynamedirvin,項目名稱:F-C,代碼行數:8,代碼來源:place.php

示例2: input

 public function input()
 {
     $input = parent::input();
     if ($this->suggestion) {
         $input->data(array('field' => 'passwordSuggestion'));
     }
     return $input;
 }
開發者ID:irenehilber,項目名稱:kirby-base,代碼行數:8,代碼來源:password.php

示例3: input

 public function input()
 {
     $input = parent::input();
     if ($this->autocomplete) {
         $input->attr('autocomplete', 'off');
         $input->data(array('field' => 'autocomplete', 'url' => panel()->urls()->api() . '/autocomplete/emails?_csrf=' . panel()->csrf()));
     }
     return $input;
 }
開發者ID:irenehilber,項目名稱:kirby-base,代碼行數:9,代碼來源:email.php

示例4: input

 public function input()
 {
     $input = parent::input();
     $input->tag('textarea');
     $input->removeAttr('type');
     $input->removeAttr('value');
     $input->html($this->value() ? htmlentities($this->value(), ENT_NOQUOTES, 'UTF-8') : false);
     $input->data('field', 'editor');
     return $input;
 }
開發者ID:nsteiner,項目名稱:kdoc,代碼行數:10,代碼來源:textarea.php

示例5: input

 public function input()
 {
     $input = parent::input();
     $input->tag('textarea');
     $input->removeAttr('type');
     $input->removeAttr('value');
     $input->html($this->value() ?: false);
     $input->data('field', 'editor');
     return $input;
 }
開發者ID:irenehilber,項目名稱:kirby-base,代碼行數:10,代碼來源:textarea.php

示例6: input

 public function input()
 {
     $input = parent::input();
     $input->addClass('input-with-tags');
     $input->data(array('field' => 'tags', 'lowercase' => $this->lower, 'separator' => $this->separator));
     if ($page = $this->page()) {
         $query = array('uri' => $page->id(), 'index' => $this->index(), 'field' => $this->field(), 'separator' => $this->separator());
         $input->data('url', url('panel/api/autocomplete/field?' . http_build_query($query)));
     }
     return $input;
 }
開發者ID:kompuser,項目名稱:panel,代碼行數:11,代碼來源:tags.php

示例7: input

 public function input()
 {
     $input = parent::input();
     $input->addClass('input-with-tags');
     $input->data(array('field' => 'tags', 'lowercase' => $this->lower, 'separator' => $this->separator));
     if (isset($this->data)) {
         $input->data('url', html(json_encode($this->data), false));
     } else {
         if ($page = $this->page()) {
             $query = array('uri' => $page->id(), 'index' => $this->index(), 'field' => $this->name(), 'separator' => $this->separator());
             $input->data('url', panel()->urls()->api() . '/autocomplete/field?' . http_build_query($query));
         }
     }
     return $input;
 }
開發者ID:sharontheil,項目名稱:bengroulx.com,代碼行數:15,代碼來源:tags.php

示例8: input

 public function input()
 {
     $input = parent::input();
     $input->addClass('input-with-tags');
     $input->data(array('field' => 'tags', 'lowercase' => $this->lower ? 'true' : false, 'separator' => $this->separator));
     if (isset($this->data)) {
         $input->data('url', html(json_encode($this->data), false));
     } else {
         if ($page = $this->page()) {
             $field = empty($this->field) ? $this->name() : $this->field;
             $model = is_a($this->model, 'File') ? 'file' : 'page';
             $query = array('uri' => $page->id(), 'index' => $this->index(), 'field' => $field, 'yaml' => $this->parentField, 'model' => $model, 'separator' => $this->separator(), '_csrf' => panel()->csrf());
             $input->data('url', panel()->urls()->api() . '/autocomplete/field?' . http_build_query($query));
         }
     }
     return $input;
 }
開發者ID:nsteiner,項目名稱:kdoc,代碼行數:17,代碼來源:tags.php

示例9: input

 public function input()
 {
     $input = parent::input();
     $input->data(array('field' => 'autocomplete', 'url' => panel()->urls()->api() . '/autocomplete/uris'));
     return $input;
 }
開發者ID:yikuo,項目名稱:stb2b,代碼行數:6,代碼來源:autopageinput.php

示例10: input

 public function input()
 {
     $input = parent::input();
     $input->data('field', 'urlfield');
     return $input;
 }
開發者ID:nsteiner,項目名稱:kdoc,代碼行數:6,代碼來源:url.php


注:本文中的TextField::input方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。