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


PHP JCckDev::fromSTRING方法代码示例

本文整理汇总了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);
 }
开发者ID:hamby,项目名称:SEBLOD,代码行数:11,代码来源:app.php

示例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);
开发者ID:densem-2013,项目名称:exikom,代码行数:31,代码来源:edit.php

示例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 '&rArr; ' . 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 '&rArr; ' . JText::_('COM_CCK_SITE_OPTIONS');
?>
</div>
        <?php 
if (count($this->item->fields)) {
    ?>
        <ul class="adminformlist adminformlist-2cols">
            <?php 
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:edit.php


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