本文整理汇总了PHP中JCckDev::fromSTRING方法的典型用法代码示例。如果您正苦于以下问题:PHP JCckDev::fromSTRING方法的具体用法?PHP JCckDev::fromSTRING怎么用?PHP JCckDev::fromSTRING使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JCckDev
的用法示例。
在下文中一共展示了JCckDev::fromSTRING方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getCategories
protected static function _getCategories($value, $glue, $data)
{
$values = JCckDev::fromSTRING($value, $glue);
$value = array();
foreach ($values as $v) {
if (isset($data['categories'][$v])) {
$value[] = $data['categories'][$v];
}
}
return implode($glue, $value);
}
示例2: defined
<?php
/**
* @version SEBLOD 3.x Core
* @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;
JCckDev::initScript('field', $this->item, array('hasOptions' => true, 'doTranslation' => 1, 'customAttr' => JCck::getConfig_Param('development_attr', 6)));
$options = JCckDev::fromSTRING($this->item->options);
?>
<div class="seblod">
<?php
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_' . $this->item->type . '_DESC'));
?>
<ul class="adminformlist adminformlist-2cols">
<?php
echo JCckDev::renderForm('core_label', $this->item->label, $config);
echo JCckDev::renderForm('core_defaultvalue', $this->item->defaultvalue, $config);
echo JCckDev::renderForm('core_sorting', $this->item->sorting, $config);
echo '<li><label>' . JText::_('COM_CCK_ORIENTATION') . '</label>' . JCckDev::getForm('core_orientation', $this->item->bool, $config) . JCckDev::getForm('core_orientation_vertical', $this->item->bool2, $config) . '</li>';
echo JCckDev::renderForm('core_options', $options, $config);
echo JCckDev::renderForm('core_separator', $this->item->divider, $config);
echo JCckDev::renderForm('core_bool', $this->item->bool7, $config, array('label' => 'Check All Toggle', 'defaultvalue' => '0', 'options' => 'Hide=0||Show=optgroup||Above=1||Below=2', 'storage_field' => 'bool7'));
echo JCckDev::renderHelp('field', 'seblod-2-x-checkbox-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
示例3: array
if (!$this->isNew) {
?>
<img id="toggle_acl" src="components/com_cck/assets/images/24/icon-24-acl.png" border="0" alt="" style="float: right; margin: 9px 9px 0px 0px; cursor: pointer;" />
<?php
}
?>
</div>
<div class="seblod">
<div class="legend top left"><?php
echo '⇒ ' . JText::_('COM_CCK_SITE_ALIASES');
?>
</div>
<ul class="adminformlist adminformlist-2cols">
<?php
$aliases = JCckDev::fromSTRING($this->item->aliases);
echo '<li>' . JCckDev::getForm('core_options', $aliases, $config, array('storage_field' => 'aliases')) . '</li>';
?>
</ul>
</div>
<div class="seblod">
<div class="legend top left"><?php
echo '⇒ ' . JText::_('COM_CCK_SITE_OPTIONS');
?>
</div>
<?php
if (count($this->item->fields)) {
?>
<ul class="adminformlist adminformlist-2cols">
<?php