当前位置: 首页>>代码示例>>PHP>>正文


PHP Helper_Admin::getSelected方法代码示例

本文整理汇总了PHP中Helper_Admin::getSelected方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper_Admin::getSelected方法的具体用法?PHP Helper_Admin::getSelected怎么用?PHP Helper_Admin::getSelected使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Helper_Admin的用法示例。


在下文中一共展示了Helper_Admin::getSelected方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: prepareDisplay

 function prepareDisplay()
 {
     $app = JFactory::getApplication();
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->option = $app->input->get('option', '');
     $this->state = $this->get('State');
     // Check Errors
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     if (@$this->item->id > 0) {
         $this->isNew = 0;
         $this->panel_class = 'closed';
         $this->panel_style = 'display:none; ';
         $name = $this->item->name;
     } else {
         $this->isNew = 1;
         $this->panel_class = 'open';
         $this->panel_style = '';
         $name = '';
     }
     $this->item->folder = Helper_Admin::getSelected($this->vName, 'folder', $this->item->folder, 1);
     $this->item->published = Helper_Admin::getSelected($this->vName, 'state', $this->item->published, 1);
     $this->item->client = $this->isNew ? 'admin' : $app->input->getString('client', $app->input->cookie->getString('cck_type' . $name . '_client', 'admin'));
     $this->item->master = $this->item->client == 'content' || $this->item->client == 'intro' ? 'content' : 'form';
     $this->item->layer = $app->input->getString('layer', 'fields');
     $P = 'template_' . $this->item->client;
     $this->style = Helper_Workshop::getTemplateStyle($this->vName, $this->item->{$P}, $this->state->get('tpl.' . $this->item->client, Helper_Workshop::getDefaultTemplate()));
     $this->item->template = $this->style->template;
     Helper_Admin::addToolbarEdit($this->vName, 'COM_CCK_' . _C2_TEXT, array('isNew' => $this->isNew, 'folder' => $this->state->get('filter.folder'), 'checked_out' => $this->item->checked_out), array('template' => $this->style->template));
 }
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:33,代码来源:view.raw.php

示例2: prepareDisplay

 function prepareDisplay()
 {
     $app = JFactory::getApplication();
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->option = $app->input->get('option', '');
     $this->state = $this->get('State');
     // Check Errors
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->item->cck_type = $this->state->get('content_type', '');
     $this->item->skip = $this->state->get('skip');
     if (@$this->item->id > 0) {
         $this->isNew = 0;
         $this->panel_class = 'closed';
         $this->panel_style = 'display:none; ';
         $name = $this->item->name;
         $app->setUserState(CCK_COM . '.edit.search.client', NULL);
     } else {
         $this->isNew = 1;
         $this->panel_class = 'open';
         $this->panel_style = '';
         $name = '';
         $this->tpl_list = $this->state->get('tpl.list');
     }
     $this->item->folder = Helper_Admin::getSelected($this->vName, 'folder', $this->item->folder, 1);
     $this->item->published = Helper_Admin::getSelected($this->vName, 'state', $this->item->published, 1);
     if ($this->item->skip != '') {
         $this->item->client = $this->item->skip;
         $this->item->master = $this->item->client == 'list' || $this->item->client == 'item' ? 'content' : ($this->item->client == 'order' ? 'order' : 'search');
         $this->item->layer = $app->input->getString('layer', 'fields');
         $P = 'template_' . $this->item->client;
         $force_template = $this->item->client == 'list' ? $this->state->get('tpl.list') : 'seb_one';
     } else {
         $this->item->client = $this->isNew ? 'search' : $this->state->get('client', $app->input->cookie->getString('cck_search' . $name . '_client', 'search'));
         $this->item->master = $this->item->client == 'list' || $this->item->client == 'item' ? 'content' : ($this->item->client == 'order' ? 'order' : 'search');
         $this->item->layer = $app->input->getString('layer', 'fields');
         $P = 'template_' . $this->item->client;
         $force_template = $this->item->client == 'list' ? '' : 'seb_one';
     }
     $this->style = $this->item->client != 'order' ? Helper_Workshop::getTemplateStyle($this->vName, $this->item->{$P}, $this->state->get('tpl.' . $this->item->client, $force_template)) : '';
     $this->item->template = isset($this->style->template) ? $this->style->template : '';
     $this->insidebox = Helper_Admin::addInsidebox($this->isNew);
     Helper_Admin::addToolbarEdit($this->vName, 'COM_CCK_' . _C4_TEXT, array('isNew' => $this->isNew, 'folder' => $this->state->get('filter.folder'), 'checked_out' => $this->item->checked_out), array('template' => $this->item->template));
 }
开发者ID:olafzieger,项目名称:joomla3.x-seblod-test,代码行数:47,代码来源:view.html.php

示例3: prepareDisplay

 function prepareDisplay()
 {
     $app = JFactory::getApplication();
     $this->form = $this->get('Form');
     $this->option = $app->input->get('option', '');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     // Check Errors
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->isNew = @$this->item->id > 0 ? 0 : 1;
     $this->item->parent_id = Helper_Admin::getSelected($this->vName, 'folder', Helper_Folder::getParent($this->item->id), 2);
     $this->item->parent_db = !$this->isNew ? $this->item->parent_id : null;
     $this->insidebox = Helper_Admin::addInsidebox($this->isNew);
     Helper_Admin::addToolbarEdit($this->vName, 'COM_CCK_' . _C0_TEXT, array('isNew' => $this->isNew, 'folder' => $this->state->get('filter.folder'), 'checked_out' => $this->item->checked_out));
 }
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:18,代码来源:view.html.php

示例4: prepareDisplay

 function prepareDisplay()
 {
     $app = JFactory::getApplication();
     $model = $this->getModel();
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->option = $app->input->get('option', '');
     $this->state = $this->get('State');
     // Check Errors
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->isNew = @$this->item->id > 0 ? 0 : 1;
     $this->item->folder = Helper_Admin::getSelected($this->vName, 'folder', $this->item->folder, 1);
     $this->item->published = Helper_Admin::getSelected($this->vName, 'state', $this->isNew ? $this->state->get('ajax.state') : $this->item->published, 1);
     $this->item->type = Helper_Admin::getSelected($this->vName, 'type', $app->input->getString('ajax_type', $this->state->get('ajax.type', $this->item->type)), 'text');
     Helper_Admin::addToolbarEdit($this->vName, _C3_TEXT, array('isNew' => $this->isNew, 'folder' => $this->state->get('filter.folder'), 'checked_out' => $this->item->checked_out));
 }
开发者ID:hamby,项目名称:SEBLOD,代码行数:19,代码来源:view.raw.php

示例5: prepareDisplay

 function prepareDisplay()
 {
     $app = JFactory::getApplication();
     $model = $this->getModel();
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->option = $app->input->get('option', '');
     $this->state = $this->get('State');
     // Check Errors
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->isNew = @$this->item->id > 0 ? 0 : 1;
     $this->item->published = Helper_Admin::getSelected($this->vName, 'state', $this->item->published, 1);
     $this->item->type = $this->state->get('type', '2,7');
     $this->item->fields = JCck::getConfig_Param('multisite_options', array());
     $this->item->options = $this->item->options ? JCckDev::fromJSON($this->item->options) : array();
     Helper_Admin::addToolbarEdit($this->vName, _C5_TEXT, array('isNew' => $this->isNew, 'folder' => 0, 'checked_out' => $this->item->checked_out));
 }
开发者ID:hamby,项目名称:SEBLOD,代码行数:20,代码来源:view.html.php


注:本文中的Helper_Admin::getSelected方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。