本文整理汇总了PHP中Helper_Include::addDependencies方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper_Include::addDependencies方法的具体用法?PHP Helper_Include::addDependencies怎么用?PHP Helper_Include::addDependencies使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helper_Include
的用法示例。
在下文中一共展示了Helper_Include::addDependencies方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$uix = JCck::getUIX();
$config = JCckDev::init(array('42', 'checkbox', 'colorpicker', 'jform_rules', 'radio', 'text', 'wysiwyg_editor'), true, array('item' => $this->item));
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" id="adminForm" name="adminForm">
<div class="<?php
echo $this->css['wrapper'];
?>
">
<div class="seblod first">
<ul class="spe spe_title">
<?php
echo JCckDev::renderForm('core_title_folder', $this->item->title, $config);
?>
</ul>
示例2: trim
// Prepare
$field = JCckDatabase::loadObject('SELECT * FROM #__cck_core_fields WHERE name = "' . $this->item->name . '"');
$field->required_alert = '';
$field->selectlabel = trim($field->selectlabel) ? $field->selectlabel : '';
$field->variation = '';
$field->variation_override = '';
$field->restriction = '';
if ($field->type == 'checkbox' || $field->type == 'radio') {
$field->bool = 1;
}
// Set
$doc = JFactory::getDocument();
$doc->addStyleSheet(JURI::root(true) . '/media/cck/css/cck.admin.css');
$doc->addStyleDeclaration('div.cck_forms.cck_admin div.cck_form {float:none;}');
$doc->addScriptDeclaration('jQuery(document).ready(function($){ $("#titlebox").html("' . JText::_('COM_CCK_PREVIEW') . '"); $("#submitBox,#resetBox").hide(); });');
Helper_Include::addDependencies('box', 'edit');
?>
<div class="seblod preview">
<div align="center" style="text-align:center;">
<div class="cck_forms cck_admin cck_<?php
echo $field->type;
?>
">
<div class="cck_form cck_form_<?php
echo $field->type;
?>
">
<?php
echo JCckDevField::getForm($field, '', $config);
?>