當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。