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


PHP Classes\WidgetBase類代碼示例

本文整理匯總了PHP中Backend\Classes\WidgetBase的典型用法代碼示例。如果您正苦於以下問題:PHP WidgetBase類的具體用法?PHP WidgetBase怎麽用?PHP WidgetBase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: __construct

 public function __construct($controller, $alias)
 {
     $this->alias = $alias;
     $this->theme = Theme::getEditTheme();
     parent::__construct($controller, []);
     $this->bindToController();
     $this->checkUploadPostback();
 }
開發者ID:betes-curieuses-design,項目名稱:ElieJosiePhotographie,代碼行數:8,代碼來源:AssetList.php

示例2: __construct

 /**
  * Constructor.
  */
 public function __construct($controller, $configuration = [])
 {
     parent::__construct($controller, $configuration);
     /*
      * Process configuration
      */
     if (isset($this->config->prompt)) {
         $this->placeholder = trans($this->config->prompt);
     }
     if (isset($this->config->partial)) {
         $this->customPartial = $this->config->partial;
     }
 }
開發者ID:tamboer,項目名稱:LaravelOctober,代碼行數:16,代碼來源:Search.php

示例3: __construct

 public function __construct($controller)
 {
     parent::__construct($controller, []);
     $this->bindToController();
     $configFile = 'config_' . snake_case($this->alias) . '.yaml';
     $path = $controller->getConfigPath($configFile);
     if (File::isFile($path)) {
         $config = $this->makeConfig($configFile);
         foreach ($config as $field => $value) {
             if (property_exists($this, $field)) {
                 $this->{$field} = $value;
             }
         }
     }
 }
開發者ID:janusnic,項目名稱:23copperleaf,代碼行數:15,代碼來源:ReportContainer.php

示例4: __construct

 /**
  * Constructor.
  */
 public function __construct($controller, $configuration = [])
 {
     parent::__construct($controller, $configuration);
     /*
      * Prepare the search widget (optional)
      */
     if (isset($this->config->search)) {
         if (is_string($this->config->search)) {
             $searchConfig = $this->makeConfig(['partial' => $this->config->search]);
         } else {
             $searchConfig = $this->makeConfig($this->config->search);
         }
         $searchConfig->alias = $this->alias . 'Search';
         $this->searchWidget = $this->makeWidget('Backend\\Widgets\\Search', $searchConfig);
         $this->searchWidget->bindToController();
     }
 }
開發者ID:360weboy,項目名稱:october,代碼行數:20,代碼來源:Toolbar.php

示例5: __construct

 public function __construct($controller, $alias, callable $dataSource)
 {
     $this->alias = $alias;
     $this->dataSource = $dataSource;
     $this->theme = Theme::getEditTheme();
     parent::__construct($controller, []);
     if (!Request::isXmlHttpRequest()) {
         $this->resetSelection();
     }
     $configFile = 'config_' . snake_case($alias) . '.yaml';
     $config = $this->makeConfig($configFile);
     foreach ($config as $field => $value) {
         if (property_exists($this, $field)) {
             $this->{$field} = $value;
         }
     }
     $this->bindToController();
 }
開發者ID:nnmer,項目名稱:october,代碼行數:18,代碼來源:TemplateList.php

示例6: __construct

 /**
  * Constructor.
  */
 public function __construct($controller, $configuration = [])
 {
     parent::__construct($controller, $configuration);
     /*
      * Process configuration
      */
     if (isset($this->config->prompt)) {
         $this->placeholder = trans($this->config->prompt);
     }
     if (isset($this->config->partial)) {
         $this->customPartial = $this->config->partial;
     }
     if (isset($this->config->growable)) {
         $this->growable = $this->config->growable;
     }
     /*
      * Add CSS class styles
      */
     $this->cssClasses[] = 'icon search';
     if ($this->growable) {
         $this->cssClasses[] = 'growable';
     }
 }
開發者ID:nnmer,項目名稱:october,代碼行數:26,代碼來源:Search.php

示例7: __construct

 public function __construct($controller, $alias)
 {
     $this->alias = $alias;
     parent::__construct($controller, []);
     $this->bindToController();
 }
開發者ID:andytan2624,項目名稱:andytan.net,代碼行數:6,代碼來源:ControllerList.php

示例8: __construct

 public function __construct($controller, $alias)
 {
     $this->alias = $alias;
     parent::__construct($controller, []);
     $this->checkUploadPostback();
 }
開發者ID:GoldBest,項目名稱:october,代碼行數:6,代碼來源:MediaManager.php

示例9: putSession

 protected function putSession($key, $value)
 {
     return parent::putSession($this->getThemeSessionKey($key), $value);
 }
開發者ID:rainlab,項目名稱:pages-plugin,代碼行數:4,代碼來源:PageList.php

示例10: bindToController

 /**
  * Ensure fields are defined and form widgets are registered so they can
  * also be bound to the controller this allows their AJAX features to
  * operate.
  * @return void
  */
 public function bindToController()
 {
     $this->defineFormFields();
     parent::bindToController();
 }
開發者ID:janusnic,項目名稱:23copperleaf,代碼行數:11,代碼來源:Form.php

示例11: getId

 /**
  * Returns a unique ID for this widget. Useful in creating HTML markup.
  */
 public function getId($suffix = null)
 {
     $id = parent::getId($suffix);
     $id .= '-' . $this->fieldName;
     return Str::evalHtmlId($id);
 }
開發者ID:janusnic,項目名稱:23copperleaf,代碼行數:9,代碼來源:FormWidgetBase.php

示例12: bindToController

 /**
  * Ensure report widgets are registered so they can also be bound to 
  * the controller this allows their AJAX features to operate.
  * @return void
  */
 public function bindToController()
 {
     $this->defineReportWidgets();
     parent::bindToController();
 }
開發者ID:idxos,項目名稱:portfolio,代碼行數:10,代碼來源:ReportContainer.php

示例13: getId

 /**
  * Returns a unique ID for this widget. Useful in creating HTML markup.
  */
 public function getId($suffix = null)
 {
     $id = parent::getId($suffix);
     $id .= '-' . $this->fieldName;
     return HtmlHelper::nameToId($id);
 }
開發者ID:GoldBest,項目名稱:october,代碼行數:9,代碼來源:FormWidgetBase.php


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