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


PHP JCckDev::get方法代码示例

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


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

示例1: array

    <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 
    $fieldnames = array();
    foreach ($this->item->fields as $fieldname) {
        if (empty($fieldname)) {
            continue;
        }
        $field = JCckDev::get($fieldname, '', $config);
        if (!is_object($field)) {
            continue;
        }
        if (isset($fieldnames[$field->name])) {
            continue;
        }
        $id = str_replace(array('json[options][', ']'), '', $field->storage_field);
        $value = isset($this->item->options[$id]) ? $this->item->options[$id] : '';
        $class = 'inputbox text' . ($field->css ? ' ' . $field->css : '');
        $maxlen = $field->maxlength > 0 ? ' maxlength="' . $field->maxlength . '"' : '';
        $attr = 'class="' . $class . '" size="' . $field->size . '"' . $maxlen . ($field->attributes ? ' ' . $field->attributes : '');
        $picker = '';
        $type = $field->type == 'password' ? $field->type : 'text';
        if (JCck::callFunc('plgCCK_Field' . $field->type, 'isFriendly')) {
            $picker = '<span id="storage_field_pick_' . $field->name . '" name="' . $field->name . '" class="value-picker">&laquo;</span>';
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:edit.php

示例2: defined

/**
* @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;
$options2 = JCckDev::fromJSON($this->item->options2);
$field1 = JCckDev::getEmpty(array('name' => 'core_options', 'type' => 'textarea', 'label' => 'PrepareContent', 'storage' => 'dev', 'storage_field' => 'json[options2][preparecontent]', 'cols' => '92', 'rows' => '5'));
JCckDev::get($field1, htmlspecialchars(@$options2['preparecontent']), $config);
$field2 = JCckDev::getEmpty(array('name' => 'core_options2', 'type' => 'textarea', 'label' => 'PrepareForm', 'storage' => 'dev', 'storage_field' => 'json[options2][prepareform]', 'cols' => '92', 'rows' => '15'));
JCckDev::get($field2, htmlspecialchars(@$options2['prepareform']), $config);
$field3 = JCckDev::getEmpty(array('name' => 'core_options2', 'type' => 'textarea', 'label' => 'PrepareStore', 'storage' => 'dev', 'storage_field' => 'json[options2][preparestore]', 'cols' => '92', 'rows' => '5'));
JCckDev::get($field3, htmlspecialchars(@$options2['preparestore']), $config);
?>

<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);
?>
		<li class="w100">
            <label><?php 
echo JText::_($field1->label);
?>
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:31,代码来源:edit.php

示例3: htmlspecialchars

echo $value == 'dev' ? '' : 'style="display: none;"';
?>
>
	<div class="legend top left"><span class="hasTooltip qtip_cck" title="<?php 
echo htmlspecialchars(JText::_('COM_CCK_STUFF_DESC'));
?>
"><?php 
echo JText::_('COM_CCK_STUFF');
?>
</span></div>
	<ul class="adminformlist adminformlist-2cols">
        <?php 
$required = JCckDev::get($cck['core_required'], $config['item']->required, $config);
$class_css = JCckDev::get($cck['core_dev_text'], $config['item']->css, $config, array('label' => 'Class CSS', 'storage_field' => 'css'));
$attributes = JCckDev::get($cck['core_attributes'], $config['item']->attributes, $config, array('label' => 'Custom Attributes'));
$script = JCckDev::get($cck['core_script'], $config['item']->script, $config);
?>
        <li>
            <label><?php 
echo $class_css->label;
?>
</label><?php 
echo $class_css->form;
?>
        </li>
        <li class="storage_more" <?php 
echo $value == 'dev' ? '' : 'style="display: none;"';
?>
>
            <label><?php 
echo $required->label;
开发者ID:pctechnikch,项目名称:SEBLOD,代码行数:31,代码来源:form.php


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