本文整理汇总了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;未经允许,请勿转载。 |
请发表评论